Actually delete the snapshot record, not just the event connection
This commit is contained in:
parent
f236e25e22
commit
105851b70c
|
@ -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'}));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue