Add name changer and repair need icon

This commit is contained in:
Haitem committed 2020-09-08 18:47:58 +02:00
1 parent 2c6e7e2ecc
commit ed732e125a
2 files changed
+24 -15

No files matched your search

+3
View File
@@ -24,6 +24,9 @@ if (!empty ($_POST)){
if (!empty ($_POST['deviceRoomId']) && !empty ($_POST['deviceId'])) {
$deviceManager->edit ($_POST['deviceId'], array ('room_id' => $_POST['deviceRoomId']));
}
if (!empty ($_POST['deviceName']) && !empty ($_POST['deviceId'])) {
$deviceManager->edit ($_POST['deviceId'], array ('name' => $_POST['deviceName']));
}
header('Location: ./device');
die();
}