diff --git a/app/devices/device_edit.php b/app/devices/device_edit.php index 4dd1c54784..c8f24fc9a4 100644 --- a/app/devices/device_edit.php +++ b/app/devices/device_edit.php @@ -295,6 +295,11 @@ $save = true; } + //set the device_enabled_date + if ($_POST["device_enabled"] == "true") { + $_POST["device_enabled_date"] = 'now()'; + } + //prepare the array $array['devices'][] = $_POST;