From 706ab6c926bfaed5c79412e9cadfe2e5dd7cd9f4 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 30 Dec 2015 14:26:35 +0000 Subject: [PATCH] Bug 15442 - Checkouts table will not display due to javascript error MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Uncaught ReferenceError: AllowCirculate is not defined Test Plan: 1) Go to circulation.pl for a patron, note the checkouts table does not load 2) Apply this patch 3) Reload the page, checkouts table should show Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall (cherry picked from commit c7339799ff994fffdb9273bd71951f8c2d60d1ec) Signed-off-by: Julian Maurice (cherry picked from commit 14ee2557daafbb67b3afa541fc69f60fa21e7229) Signed-off-by: Frédéric Demians --- koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 1 + 1 file changed, 1 insertion(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt index ef3904e2e9..2d3f739f23 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -37,6 +37,7 @@ var borrowernumber = "[% borrowernumber %]"; var branchcode = "[% branch %]"; var exports_enabled = "[% exports_enabled %]"; var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && AllowRenewalLimitOverride)? 1: 0 %]; +var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 %]; var script = "circulation"; var relatives_borrowernumbers = new Array(); [% FOREACH b IN relatives_borrowernumbers %] -- 2.20.1