Skip to content

Commit 385ae52

Browse files
Add Deleting Event_Data
1 parent ab50874 commit 385ae52

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • scripts/ZoneMinder/lib/ZoneMinder

scripts/ZoneMinder/lib/ZoneMinder/Event.pm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,11 @@ sub delete {
403403
$ZoneMinder::Database::dbh->commit() if ! $in_transaction;
404404
return;
405405
}
406+
ZoneMinder::Database::zmDbDo('DELETE FROM Event_Data WHERE EventId=?', $$event{Id});
407+
if ( $ZoneMinder::Database::dbh->errstr() ) {
408+
$ZoneMinder::Database::dbh->commit() if ! $in_transaction;
409+
return;
410+
}
406411
ZoneMinder::Database::zmDbDo('DELETE FROM Frames WHERE EventId=?', $$event{Id});
407412
if ( $ZoneMinder::Database::dbh->errstr() ) {
408413
$ZoneMinder::Database::dbh->commit() if ! $in_transaction;

0 commit comments

Comments
 (0)