[Koha-patches] [PATCH] Bug 7868: cleans logs when doing a Search on the intranet

Adrien Saurat adrien.saurat at biblibre.com
Mon Apr 2 12:31:04 CEST 2012


---
 .../prog/en/modules/catalogue/results.tt           |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt
index bed9a84..5001fab 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt
@@ -70,8 +70,10 @@ $(".addtocart").show();
         param1 += "<\/optgroup>";[% END %]
         [% IF ( addpubshelves ) %]param1 += "<optgroup label=\""+_("Public Lists:")+"\">"[% FOREACH addpubshelvesloo IN addpubshelvesloop %]+"<option id=\"s[% addpubshelvesloo.shelfnumber %]\" value=\"addtolist\">[% addpubshelvesloo.shelfname |html %]<\/option>"[% END %]
         param1 += "<\/optgroup>";[% END %]
-        [% IF ( addbarshelvesloop.size>9 || addpubshelvesloop.size>9 ) %]
-            param1 += "<option value=\"morelists\">[ "+_("More Lists")+" ]<\/option>";
+        [% IF addbarshelvesloop %]
+            [% IF ( addbarshelvesloop.size>9 || addpubshelvesloop.size>9 ) %]
+                param1 += "<option value=\"morelists\">[ "+_("More Lists")+" ]<\/option>";
+            [% END %]
         [% END %]
         param1 +="<option value=\"newlist\">"+_("[ New List ]")+"<\/option>"
         [% END %]
-- 
1.7.4.1



More information about the Koha-patches mailing list