From: Galen Charlton Date: Wed, 17 Jul 2013 18:02:13 +0000 (+0000) Subject: Bug 10515: (follow-up) fix use of GetBranchCategories X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=968f337728d1e13040389381fef01adc39e8be5c;p=koha.git Bug 10515: (follow-up) fix use of GetBranchCategories Adjusting to reflect the removal of the branchcode parameter to GetBranchCategories; also filter on the 'searchdomain' library group type, as appears to have been intended. Signed-off-by: Galen Charlton --- diff --git a/C4/Auth.pm b/C4/Auth.pm index 3c0b804a2c..b19113caee 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -390,7 +390,7 @@ sub get_template_and_user { AnonSuggestions => "" . C4::Context->preference("AnonSuggestions"), AuthorisedValueImages => C4::Context->preference("AuthorisedValueImages"), BranchesLoop => GetBranchesLoop($opac_name), - BranchCategoriesLoop => GetBranchCategories( undef, undef, 1, $opac_name ), + BranchCategoriesLoop => GetBranchCategories( 'searchdomain', 1, $opac_name ), CalendarFirstDayOfWeek => (C4::Context->preference("CalendarFirstDayOfWeek") eq "Sunday")?0:1, LibraryName => "" . C4::Context->preference("LibraryName"), LibraryNameTitle => "" . $LibraryNameTitle,