mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
Fix sorting room, fix form sending after sorting and add column Historie
This commit is contained in:
1 parent
64b50ead9f
commit
b5b2bb95a7
9 files changed
+58
-26
No files matched your search
@@ -66,6 +66,10 @@ class SubDeviceManager
|
||||
}
|
||||
}
|
||||
|
||||
public static function editSubDevicesByDevice ($deviceId, $subDeviceParameters) {
|
||||
DB::edit('subdevices', $subDeviceParameters, 'WHERE device_id=?', array ($deviceId));
|
||||
}
|
||||
|
||||
public static function remove($subDeviceId)
|
||||
{
|
||||
RecordManager::cleanSubdeviceRecords($subDeviceId);
|
||||
@@ -103,7 +107,7 @@ class SubDeviceManager
|
||||
public static function getSubdeviceDetailById($subDeviceId){
|
||||
if (empty($subDeviceId)) return NULL;
|
||||
|
||||
$rows = Db::loadOne("SELECT d.room_id, d.sleep_time, sd.subdevice_id, sd.type, sd.device_id FROM subdevices sd
|
||||
$rows = Db::loadOne("SELECT d.room_id, d.sleep_time, sd.subdevice_id, sd.type, sd.device_id FROM subdevices sd
|
||||
JOIN devices d ON sd.device_id = d.device_id
|
||||
WHERE sd.subdevice_id = ? ", [$subDeviceId]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user