From 14ee2557daafbb67b3afa541fc69f60fa21e7229 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 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 --- 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 9abbefdba0..0e41342eec 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -38,6 +38,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.39.5