Skip to content

Commit

Permalink
Add true return on delete success
Browse files Browse the repository at this point in the history
(fix #906)
  • Loading branch information
zerocrates committed Apr 17, 2020
1 parent 9d71d9f commit dfa2658
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions application/libraries/Omeka/Record/AbstractRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,8 @@ public function __clone()

/**
* Delete the record.
*
* @return bool Whether the deletion succeeded.
*/
public function delete()
{
Expand All @@ -588,6 +590,8 @@ public function delete()

$this->runCallbacks('afterDelete');
$this->id = null;

return true;
}

/**
Expand Down

0 comments on commit dfa2658

Please sign in to comment.