]> git.koha-community.org Git - koha.git/commit
Bug 28622: (bug 15758 follow-up) Remove incorrect branch selection in adv search
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 23 Jun 2021 14:19:15 +0000 (16:19 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 26 Jul 2021 08:39:22 +0000 (10:39 +0200)
commitfc96399c95153e4b305c9239e3211c9e829d67a6
tree6ad48a1dec38216f93e99eeca612da8fd4d98b42
parentc739305d8566984cf4f59f517a8b18d87c90075c
Bug 28622: (bug 15758 follow-up) Remove incorrect branch selection in adv search

From
  commit df97814f3034a3d5015546c4eca21f08ae951e37
  Bug 15758: Koha::Libraries - Remove GetBranches

+    selected_branchcode => ( C4::Context->IsSuperLibrarian ? C4::Context->userenv : '' ),

And

-        [% PROCESS options_for_libraries libraries => Branches.all() %]
+        [%# FIXME Should not we filter the libraries displayed? %]
+        [% PROCESS options_for_libraries libraries => Branches.all( selected => selected_branchcode, unfiltered => 1 ) %]

The change in the pl is wrong as it should pass C4::Context->userenv->{branch},
but prior to this commit it seems that we didn't select the logged in
library anyway.

Looks like we should remove this code but preserve the current behavior and select "All libraries".

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
catalogue/search.pl
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt