From 456b98c67d5229bc19b883580d8bf4dc65a54c52 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 25 Aug 2015 14:57:30 +0100 Subject: [PATCH] Bug 14544: Do not use shelf as a variable loop Otherwise the shelf variable send from the pl script is overwrite --- .../intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt index 1ff8e8f..9a9cafe 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt @@ -134,9 +134,9 @@ $(document).ready(function(){ [% IF some_private_shelves.count %] param1 += ""; [% SET number_of_private_shelves = 0 %] - [% FOREACH shelf IN some_private_shelves %] - [% IF shelfnumber != shelf.shelfnumber %] - param1 += ""; [% SET number_of_public_shelves = 0 %] - [% FOREACH shelf IN some_public_shelves %] - [% IF shelfnumber != shelf.shelfnumber %] - param1 += "