Repair Historie sorting
This commit is contained in:
parent
d9952a59fb
commit
1415c0cf2d
@ -57,7 +57,7 @@ class Device extends Template
|
|||||||
if (!empty ($subdeviceLocal)) {
|
if (!empty ($subdeviceLocal)) {
|
||||||
$devices[$key]['history'] = (!empty ($subdeviceLocal['history']) ? $subdeviceLocal['history'] : 0);
|
$devices[$key]['history'] = (!empty ($subdeviceLocal['history']) ? $subdeviceLocal['history'] : 0);
|
||||||
} else {
|
} else {
|
||||||
unset($devices[$key]['history']);
|
$devices[$key]['history'] = "null";
|
||||||
}
|
}
|
||||||
$devices[$key]['signal'] = "";
|
$devices[$key]['signal'] = "";
|
||||||
if (!empty($subdevice['subdevice_id'])) {
|
if (!empty($subdevice['subdevice_id'])) {
|
||||||
|
@ -102,7 +102,7 @@
|
|||||||
<?php echo (!empty($device['ip_address']) ? $device['ip_address'] : ""); ?><br>
|
<?php echo (!empty($device['ip_address']) ? $device['ip_address'] : ""); ?><br>
|
||||||
<?php echo (!empty($device['token']) ? $device['token'] : ""); ?></td>
|
<?php echo (!empty($device['token']) ? $device['token'] : ""); ?></td>
|
||||||
<td>
|
<td>
|
||||||
<?php if (isset($device['history'])): ?>
|
<?php if (isset($device['history']) && $device['history'] != "null"): ?>
|
||||||
<form method="post" action="">
|
<form method="post" action="">
|
||||||
<input type="hidden" name="deviceId" value="<?php echo (!empty($device['device_id']) ? $device['device_id'] : ""); ?>">
|
<input type="hidden" name="deviceId" value="<?php echo (!empty($device['device_id']) ? $device['device_id'] : ""); ?>">
|
||||||
<input class="input" type="number" onchange="this.form.submit();" name="deviceHistory" value="<?php echo (!empty($device['history']) ? $device['history'] : 0); ?>">
|
<input class="input" type="number" onchange="this.form.submit();" name="deviceHistory" value="<?php echo (!empty($device['history']) ? $device['history'] : 0); ?>">
|
||||||
|
Loading…
Reference in New Issue
Block a user