Update device_edit.php
This commit is contained in:
parent
e6050cb193
commit
9118cdd1a0
|
|
@ -295,6 +295,11 @@
|
||||||
$save = true;
|
$save = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//set the device_enabled_date
|
||||||
|
if ($_POST["device_enabled"] == "true") {
|
||||||
|
$_POST["device_enabled_date"] = 'now()';
|
||||||
|
}
|
||||||
|
|
||||||
//prepare the array
|
//prepare the array
|
||||||
$array['devices'][] = $_POST;
|
$array['devices'][] = $_POST;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue