Add name changer and repair need icon

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

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();
}