From 0c1e90f5742114000334b6cf869a40867d6d43f4 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 --- 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 4da74d8..7c5573a 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.1.0