Bugzilla – Attachment 188623 Details for
Bug 8137
Checkout limit for all libraries
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8137: (follow up) Now maxissueqty and maxonsiteissueqty quotas are compared between specific branch rule and global limits
Bug-8137-follow-up-Now-maxissueqty-and-maxonsiteis.patch (text/plain), 1.10 KB, created by
Thibaud Guillot (thibaud_g)
on 2025-10-30 11:06:57 UTC
(
hide
)
Description:
Bug 8137: (follow up) Now maxissueqty and maxonsiteissueqty quotas are compared between specific branch rule and global limits
Filename:
MIME Type:
Creator:
Thibaud Guillot (thibaud_g)
Created:
2025-10-30 11:06:57 UTC
Size:
1.10 KB
patch
obsolete
>From 25a529e9da05333175840d24b518b98497fdf966 Mon Sep 17 00:00:00 2001 >From: Thibaud Guillot <thibaud.guillot@biblibre.com> >Date: Thu, 30 Oct 2025 12:06:29 +0100 >Subject: [PATCH] Bug 8137: (follow up) Now maxissueqty and maxonsiteissueqty > quotas are compared between specific branch rule and global limits > >--- > Koha/CirculationRules.pm | 12 +++++++++++- > 1 file changed, 11 insertions(+), 1 deletion(-) > >diff --git a/Koha/CirculationRules.pm b/Koha/CirculationRules.pm >index d3c5a40caed..3308d270703 100644 >--- a/Koha/CirculationRules.pm >+++ b/Koha/CirculationRules.pm >@@ -303,7 +303,17 @@ sub get_effective_rule { > } > )->single; > >- return defined $priority_rule ? $priority_rule : $rule; >+ if ( grep { $_ eq $rule_name } ( 'maxissueqty', 'maxonsiteissueqty' ) ) { >+ if ( defined $priority_rule ) { >+ if ( $priority_rule->rule_value > $rule->rule_value ) { >+ return $rule; >+ } >+ return $priority_rule; >+ } >+ } >+ else { >+ return defined $priority_rule ? $priority_rule : $rule; >+ } > } > > =head3 get_effective_rule_value >-- >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 8137
:
9705
|
9706
|
11079
|
64703
|
64704
|
64791
|
64891
|
72831
|
72832
|
107207
|
107208
|
107209
|
107459
|
111368
|
111369
|
111370
|
112640
|
113797
|
113882
|
114531
|
114532
|
114533
|
114534
|
116676
|
116677
|
116678
|
116679
|
116680
|
145476
|
145477
|
145478
|
145479
|
145480
|
152040
|
152041
|
152042
|
152043
|
152044
|
152045
|
156316
|
156317
|
156318
|
156319
|
156320
|
156321
|
156322
|
159712
|
162367
|
167208
|
167923
|
168119
|
169084
|
169696
|
169700
|
169727
|
169927
|
169928
|
170411
|
173605
|
173608
|
175837
|
175838
|
177464
|
186028
|
186029
|
186030
|
188548
| 188623