Device Update

* Device Backups können nun automatisch übers Tool getriggert werden

Zeiterfassung Update
 * Vorbereitung für ZA Buchungen
This commit is contained in:
Spitzer Daniel
2024-03-10 21:25:23 +01:00
parent 901131fbce
commit 6e02b849bd
10 changed files with 124 additions and 5 deletions

View File

@@ -102,6 +102,8 @@ class DeviceController extends mfBaseController
$data = [];
$data['name'] = trim($r->name);
$data['devicetype_id'] = $r->devicetype_id;
$data['autobackup'] = trim($r->autobackup);
if (trim($r->pop_id) == "0") {
$data['pop_id'] = NULL;
} else {
@@ -127,6 +129,9 @@ class DeviceController extends mfBaseController
$data['gps_lat'] = $r->gps_lat;
$data['gps_long'] = $r->gps_long;
}
if ($data['autobackup'] != "1") {
$data['autobackup'] = "0";
}
$data['ip'] = $r->ip;
$data['mac'] = $r->mac;
$data['serial'] = $r->serial;