Skip to content

Commit 68d36c6

Browse files
committed
Merge branch 'develop'
2 parents 88b772c + c36f297 commit 68d36c6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

DashboardPanelNumber.module

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class DashboardPanelNumber extends DashboardPanel
3131
return $this->view('panels/number', [
3232
'number' => $this->number,
3333
'detail' => $this->detail,
34-
'trend' => $this->data['trend'] ?? null,
34+
'trend' => $this->trend,
3535
]);
3636
}
3737

@@ -41,6 +41,7 @@ class DashboardPanelNumber extends DashboardPanel
4141
$this->locale = $this->data['locale'] ?? setlocale(LC_ALL, 0);
4242
$this->detail = $this->data['detail'] ?? '';
4343
$this->number = $this->data['number'] ?? null;
44+
$this->trend = $this->data['trend'] ?? null;
4445
if (is_int($this->number) || is_float($this->number)) {
4546
$this->number = $this->formatNumber($this->number);
4647
}

views/panels/number.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="DashboardPanelNumber__content" data-trend="<?= isset($trend) ? htmlspecialchars($trend) : '' ?>">
22

3-
<?php if ($number && $detail) { ?>
3+
<?php if ($detail) { ?>
44
<dl>
55
<dt><?= $number ?> <i class="fa fa-arrow-right fa-fw"></i></dt>
66
<dd><?= $detail ?></dd>

0 commit comments

Comments
 (0)