Mark snapshot events as Archived

This commit is contained in:
Isaac Connor 2021-04-08 15:20:32 -04:00
parent 4bd490d121
commit 2e22cd5c3b
1 changed files with 3 additions and 0 deletions

View File

@ -47,6 +47,9 @@ if ( $action == 'create' ) {
$monitor = new ZM\Monitor($monitor_id);
$monitor->TriggerOff();
}
foreach ( $snapshot->Events() as $event ) {
$event->save(array('Archived'=>1));
}
$redirect = '?view=snapshot&id='.$snapshot->Id();
return;
}