From 105851b70c5ae8c9d0cb84da1534d3b22b176ef2 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 6 Aug 2021 13:17:02 -0400 Subject: [PATCH] Actually delete the snapshot record, not just the event connection --- web/includes/Snapshot.php | 1 + 1 file changed, 1 insertion(+) diff --git a/web/includes/Snapshot.php b/web/includes/Snapshot.php index 2c36306f5..40a22cc9f 100644 --- a/web/includes/Snapshot.php +++ b/web/includes/Snapshot.php @@ -29,6 +29,7 @@ class Snapshot extends ZM_Object { public function delete() { if ( property_exists($this, 'Id') ) { dbQuery('DELETE FROM `Snapshot_Events` WHERE `SnapshotId`=?', array($this->{'Id'})); + dbQuery('DELETE FROM `Snapshots` WHERE `Id`=?', array($this->{'Id'})); } }