Bug 18928: (bug 22847 follow-up) Display correctly the values (not the propagated...
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 11 Jun 2019 15:05:24 +0000 (10:05 -0500)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 1 Jul 2019 13:59:47 +0000 (14:59 +0100)
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt

index f7e4e0a..17e77ba 100644 (file)
                     <th>&nbsp;</th>
                 </tr>
                 [% FOREACH i IN itemtypeloop %]
-                    [% SET holdallowed = CirculationRules.Get( branchcode, undef, i.itemtype, 'holdallowed' ) %]
-                    [% SET hold_fulfillment_policy = CirculationRules.Get( branchcode, undef, i.itemtype, 'hold_fulfillment_policy' ) %]
-                    [% SET returnbranch = CirculationRules.Get( branchcode, undef, i.itemtype, 'returnbranch' ) %]
+                    [% SET holdallowed = CirculationRules.Search( branchcode, undef, i.itemtype, 'holdallowed' ) %]
+                    [% SET hold_fulfillment_policy = CirculationRules.Search( branchcode, undef, i.itemtype, 'hold_fulfillment_policy' ) %]
+                    [% SET returnbranch = CirculationRules.Search( branchcode, undef, i.itemtype, 'returnbranch' ) %]
 
                     [% IF holdallowed || hold_fulfillment_policy || returnbranch %]
                         <tr>