You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In AbstractRecord.php, the delete function only ever returns false. I believe this an oversight.
/** * Delete the record. */publicfunctiondelete()
{
if ($this->_locked) {
thrownewOmeka_Record_Exception('Cannot delete a locked record!');
}
if (!$this->exists()) {
returnfalse;
}
$this->runCallbacks('beforeDelete');
// Delete has an extra template method that is separate from the// callbacks. This is because the callbacks execute prior to actually// deleting anything. So the state of the record must be maintained// until all callbacks are done. Then _delete() template method takes// over and all bets are off$this->_delete();
// The main delete query$table = $this->getTable()->getTableName();
$this->getDb()->delete($table, 'id = ' . (int) $this->id);
$this->runCallbacks('afterDelete');
$this->id = null;
// probably should return true here
}
The text was updated successfully, but these errors were encountered:
In
AbstractRecord.php
, thedelete
function only ever returns false. I believe this an oversight.The text was updated successfully, but these errors were encountered: