diff --git a/web/includes/actions/snapshot.php b/web/includes/actions/snapshot.php index 1f5677453..a4add4f25 100644 --- a/web/includes/actions/snapshot.php +++ b/web/includes/actions/snapshot.php @@ -47,9 +47,12 @@ if ( $action == 'create' ) { $monitor = new ZM\Monitor($monitor_id); $monitor->TriggerOff(); } + $dbConn->beginTransaction(); foreach ( $snapshot->Events() as $event ) { + $event->lock(); $event->save(array('Archived'=>1)); } + $dbConn->commit(); $redirect = '?view=snapshot&id='.$snapshot->Id(); return; }