Bugzilla – Attachment 191264 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
Bug-26993-Use-lastreturnedby-deleteall.patch (text/plain), 826 bytes, created by
Lucas Gass (lukeg)
on 2026-01-12 14:45:29 UTC
(
hide
)
Description:
Bug 26993: Use last_returned_by->delete_all
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2026-01-12 14:45:29 UTC
Size:
826 bytes
patch
obsolete
>From fce5f6e5aea67e20370a9c55d4bde94668e19a7c 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 > >--- > 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.39.5
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