mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
Add name changer and repair need icon
This commit is contained in:
1 parent
2c6e7e2ecc
commit
ed732e125a
2 files changed
+24
-15
No files matched your search
@@ -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();
|
||||
}
|
||||
Reference in new issue
Block a user