Bug 24026: (bug 22847 follow-up) Display correctly max[onsite]issueqty (not the propagated ones)

See bug 22847. We should never call ->Get in this template, we want
to display the values in the DB, not the calculated ones

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Jonathan Druart 2019-11-13 12:35:45 +01:00 committed by Martin Renvoize
parent 4ad2bedb97
commit c4ca7bff68
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F

View file

@ -137,7 +137,7 @@
[% ELSE %]&nbsp;[% 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 %]