Fix not being able to undelete a monitor

pull/4198/head
Isaac Connor 2024-12-09 12:27:42 -05:00
parent 14d6234e57
commit edb0836fe1
1 changed files with 5 additions and 0 deletions

View File

@ -49,6 +49,10 @@ if ($action == 'save') {
if (ZM_OPT_X10) {
$x10Monitor = array();
}
if (!empty($_REQUEST['newMonitor']['Id'])) {
// Reuse existing but deleted monitor
$mid = validCardinal($_REQUEST['newMonitor']['Id']);
}
}
# For convenience
@ -92,6 +96,7 @@ if ($action == 'save') {
'TrackMotion' => 0,
'ModectDuringPTZ' => 0,
'Enabled' => 0,
'Deleted' => 0,
'DecodingEnabled' => 0,
'RTSP2WebEnabled' => 0,
'JanusEnabled' => 0,