From edc7b29b171364b1171827ee133fa9be415d84d2 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Mon, 12 Jan 2026 14:44:52 +0000 Subject: [PATCH] Bug 26993: Use last_returned_by->delete_all Signed-off-by: Jonathan Druart Signed-off-by: Lucas Gass --- Koha/Item.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Item.pm b/Koha/Item.pm index 73a469fa79..52f1d1862a 100644 --- a/Koha/Item.pm +++ b/Koha/Item.pm @@ -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; }