Bug 26993: Use last_returned_by->delete_all
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
9d4b4efffd
commit
edc7b29b17
|
|
@ -977,7 +977,7 @@ sub last_returned_by {
|
|||
|
||||
# If StoreLastBorrower is 0 or disabled, bail without storing anything. Also delete any remaining rows from the table.
|
||||
if ( $max_stored_borrowers == 0 ) {
|
||||
$self->last_borrowers->delete;
|
||||
$self->_result->last_returned_by->delete_all;
|
||||
return $self;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue