mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-03-12 10:58:28 -04:00
Fix not saving Manufacturer and Model. Have to unset the text input if the ddm is populated
This commit is contained in:
@@ -126,6 +126,10 @@ if ($action == 'save') {
|
||||
ZM\Debug('Auto selecting server to '.ZM_SERVER_ID);
|
||||
}
|
||||
}
|
||||
if (!empty($newMonitor['ManufacturerId']) and empty($newMonitor['Manufacturer']))
|
||||
unset($newMonitor['Manufacturer']);
|
||||
if (!empty($newMonitor['ModelId']) and empty($newMonitor['Model']))
|
||||
unset($newMonitor['Model']);
|
||||
|
||||
$changes = $monitor->changes($newMonitor);
|
||||
ZM\Debug('Changes: '. print_r($changes, true));
|
||||
|
||||
Reference in New Issue
Block a user