From 2e22cd5c3b489ee05a2cf6ff749df8995f7e6d38 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 8 Apr 2021 15:20:32 -0400 Subject: [PATCH] Mark snapshot events as Archived --- web/includes/actions/snapshot.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/includes/actions/snapshot.php b/web/includes/actions/snapshot.php index 11edcb5a6..1f5677453 100644 --- a/web/includes/actions/snapshot.php +++ b/web/includes/actions/snapshot.php @@ -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; }