Bugzilla – Attachment 191636 Details for
Bug 26993
Allow StoreLastBorrower to retain a locally-defined number of previous borrowers
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26993: Use last_returned_by->delete_all
c44aa07.patch (text/plain), 901 bytes, created by
Jonathan Druart
on 2026-01-19 09:47:13 UTC
(
hide
)
Description:
Bug 26993: Use last_returned_by->delete_all
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2026-01-19 09:47:13 UTC
Size:
901 bytes
patch
obsolete
>From c44aa07473a491c32ee212fb4ba0be4e571629dd Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Mon, 12 Jan 2026 14:44:52 +0000 >Subject: [PATCH] Bug 26993: Use last_returned_by->delete_all > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > Koha/Item.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/Item.pm b/Koha/Item.pm >index 198c75334dd..2ae537c5646 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; > } > >-- >2.43.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 26993
:
186773
|
186774
|
186775
|
186776
|
186801
|
186805
|
186806
|
186807
|
186808
|
186809
|
186844
|
186853
|
187311
|
187312
|
187313
|
187314
|
187315
|
187316
|
187459
|
187460
|
187483
|
187484
|
191264
|
191624
|
191625
|
191626
|
191628
|
191630
|
191631
|
191632
|
191633
|
191634
|
191635
| 191636