Bugzilla – Attachment 95366 Details for
Bug 24026
Wrong parameters in Koha/Templates/Plugin/CirculationRules.pm and smart-rules.tt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24026: (bug 22847 follow-up) Display correctly max[onsite]issueqty (not the propagated ones)
Bug-24026-bug-22847-follow-up-Display-correctly-ma.patch (text/plain), 2.10 KB, created by
Jonathan Druart
on 2019-11-13 11:38:32 UTC
(
hide
)
Description:
Bug 24026: (bug 22847 follow-up) Display correctly max[onsite]issueqty (not the propagated ones)
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2019-11-13 11:38:32 UTC
Size:
2.10 KB
patch
obsolete
>From 40e56257f70344f59c4dfc3f041648ab4732450c Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 13 Nov 2019 12:35:45 +0100 >Subject: [PATCH] Bug 24026: (bug 22847 follow-up) Display correctly > max[onsite]issueqty (not the propagated ones) > >See bug 22847. We should never call ->Search in this template, we want >to display the values in the DB, not the calculated ones >--- > koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt >index ed8bc3034e..79b002c00a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt >@@ -137,7 +137,7 @@ > [% ELSE %] [% END %] > </td> > <td> >- [% SET rule_value = CirculationRules.Get( rule.branchcode, rule.categorycode, rule.itemtype, 'maxissueqty' ) %] >+ [% SET rule_value = CirculationRules.Search( rule.branchcode, rule.categorycode, rule.itemtype, 'maxissueqty' ) %] > [% IF rule_value || rule_value == "0" %] > [% rule_value | html %] > [% ELSE %] >@@ -145,7 +145,7 @@ > [% END %] > </td> > <td> >- [% SET rule_value = CirculationRules.Get( rule.branchcode, rule.categorycode, rule.itemtype, 'maxonsiteissueqty' ) %] >+ [% SET rule_value = CirculationRules.Search( rule.branchcode, rule.categorycode, rule.itemtype, 'maxonsiteissueqty' ) %] > [% IF rule_value || rule_value == "0" %] > [% rule_value | html %] > [% ELSE %] >-- >2.11.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 24026
:
95365
|
95366
|
95369
|
95370
|
95373
|
95386
|
95387