Mark snapshot events as Archived
This commit is contained in:
parent
4bd490d121
commit
2e22cd5c3b
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue