From 7faf5071957d3f398aa8b63040af9e22f98d274b Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 11 Apr 2019 09:52:29 -0400 Subject: [PATCH] Bug 22688: TT plugin for pickup locations code wrong MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Test Plan: 1) Apply this patch 2) prove t/db_dependent/Koha/Libraries.t Signed-off-by: Agustín Moyano --- Koha/Template/Plugin/Branches.pm | 3 --- 1 file changed, 3 deletions(-) diff --git a/Koha/Template/Plugin/Branches.pm b/Koha/Template/Plugin/Branches.pm index 58b13d2fc5..df11ab897d 100644 --- a/Koha/Template/Plugin/Branches.pm +++ b/Koha/Template/Plugin/Branches.pm @@ -87,9 +87,6 @@ sub InIndependentBranchesMode { sub pickup_locations { my ( $self, $params ) = @_; - $params->{search_params} ||= {}; - $params->{search_params}->{pickup_location} = 1; - return $self->all($params); my $selected = $params->{selected}; my $libraries = Koha::Libraries->pickup_locations($params); -- 2.11.0