From eca8d7fe2af431f28230385bfe185c48b6eaf16a Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 12 Feb 2013 12:19:58 -0500 Subject: [PATCH] tpac avoid more org_unit template var leaks Avoid using the variable name 'org_unit' in misc_utils (when compiling copy visibility info) since the value can leak into the org_selector template, disrupting the rendering of the org selector. Signed-off-by: Bill Erickson Signed-off-by: Ben Shum --- Open-ILS/src/templates/opac/parts/misc_util.tt2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/templates/opac/parts/misc_util.tt2 b/Open-ILS/src/templates/opac/parts/misc_util.tt2 index 2d2f299b26..bddab424f7 100644 --- a/Open-ILS/src/templates/opac/parts/misc_util.tt2 +++ b/Open-ILS/src/templates/opac/parts/misc_util.tt2 @@ -379,9 +379,9 @@ FOR node IN xml.findnodes(xpath); FOR attr IN ['count', 'available', 'unshadow', 'transcendant', 'org_unit']; depth = node.getAttribute('depth'); - org_unit = node.getAttribute('org_unit'); + count_org_unit = node.getAttribute('org_unit'); args.copy_counts.$depth.$attr = node.getAttribute(attr); - args.org_copy_counts.$org_unit.$attr = node.getAttribute(attr); + args.org_copy_counts.$count_org_unit.$attr = node.getAttribute(attr); END; END; -- 2.11.0