From 99e487bc7162cee4bb9a8916637f4e1ddd7ccc00 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 2 Oct 2017 14:30:14 -0300 Subject: [PATCH] Bug 19389: Hide library groups pull down if empty Regression introduced by bug commit 141200794da9f27e0231e1c2dad4bcb994d650f3 Bug 15295: Koha::Libraries - Remove GetBranchCategories The intranet advanced search page offers to search for groups of libraries, even if the pull down is empty as no library groups have been defined. Test plan: - Go to the adv search page at the intranet - Without library group you must not see the "Groups of libraries" dropdown list - With at least a library group you must see it Signed-off-by: Katrin Fischer Signed-off-by: Kyle M Hall Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt index b9f00d0902..2e32f6bac3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt @@ -242,7 +242,7 @@ [% PROCESS options_for_libraries prefix => "branch:" libraries => Branches.all( selected => selected_branchcode, unfiltered => 1 ) %]

- [% IF ( searchdomainloop ) %] + [% IF searchdomainloop.count %]

OR