Actually delete the snapshot record, not just the event connection
This commit is contained in:
parent
2f7c44dce2
commit
2c7af3886c
|
@ -29,6 +29,7 @@ class Snapshot extends ZM_Object {
|
||||||
public function delete() {
|
public function delete() {
|
||||||
if ( property_exists($this, 'Id') ) {
|
if ( property_exists($this, 'Id') ) {
|
||||||
dbQuery('DELETE FROM `Snapshot_Events` WHERE `SnapshotId`=?', array($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