Bug 12920 [QA Followup] - Show override option below checkouts table when allowed
authorKyle M Hall <kyle@bywatersolutions.com>
Wed, 3 Feb 2016 15:22:40 +0000 (15:22 +0000)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Wed, 24 Feb 2016 03:10:20 +0000 (03:10 +0000)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
koha-tmpl/intranet-tmpl/prog/en/includes/checkouts-table.inc

index 88d4e5c..53ef182 100644 (file)
@@ -1,3 +1,4 @@
+[% USE Koha %]
 <div id="checkouts">
     [% IF ( issuecount ) %]
         <div id="issues-table-loading-message">
@@ -36,7 +37,7 @@
             <div id="issues-table-actions">
                 <fieldset class="action">
                     [% IF ( CAN_user_circulate_override_renewals ) %]
-                        [% IF ( AllowRenewalLimitOverride ) %]
+                        [% IF CAN_user_circulate_override_renewals && Koha.Preference( 'AllowRenewalLimitOverride' ) %]
                             <label for="override_limit">Override renewal limit:</label>
                             <input type="checkbox" name="override_limit" id="override_limit" value="1" />
                         [% END %]