From ee431431ae0877d2f062a03e532cac03dc1582dc Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Mon, 14 Feb 2022 10:07:44 -1000 Subject: [PATCH] Bug 30101: Fix OPAC advanced search after Bug 29844 Bug 29844 forgot to add as_list to opac-search.pl. You can see it changed search.pl Patch fixes and also adds explicit interface = opac in get_search_groups() call. Since intranet is explicit, opac should also be. We keep opac as default value. Test plan : 1) Create a libary group for OPAC and one for staff 2) Go to OPAC advanced search page 3) Check you see the OPAC libary group Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- opac/opac-search.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-search.pl b/opac/opac-search.pl index b2d7be17c87..b74fc0b5628 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -216,7 +216,7 @@ if ($cgi->cookie("search_path_code")) { } } -my @search_groups = Koha::Library::Groups->get_search_groups(); +my @search_groups = Koha::Library::Groups->get_search_groups( { interface => 'opac' } )->as_list; $template->param( search_groups => \@search_groups ); # load the language limits (for search) -- 2.25.1