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:
Lucas Gass 2026-01-12 14:44:52 +00:00
parent 9d4b4efffd
commit edc7b29b17
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}