From d07bbd7c44cd0036f9c66e058d261b4b38a6bcf0 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=utf8 Content-Transfer-Encoding: 8bit Test Plan: 1) Apply this patch 2) prove t/db_dependent/Koha/Libraries.t Signed-off-by: Agustín Moyano Signed-off-by: Tomas Cohen Arazi Signed-off-by: Kyle M Hall Signed-off-by: Nick Clemens (cherry picked from commit ae18c4bb031a194302ced37f4b376c7439f77c99) Signed-off-by: Martin Renvoize --- 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.39.5