From b12a56c1867682e91ec2be21689ef090ae41ff20 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Thu, 12 Sep 2019 11:50:40 -0300 Subject: [PATCH] Bug 15497: (QA follow-up) Fix call in search_with_localization Signed-off-by: Tomas Cohen Arazi Signed-off-by: Martin Renvoize --- Koha/ItemTypes.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Koha/ItemTypes.pm b/Koha/ItemTypes.pm index f8c53e9bd3..1fa76df2fd 100644 --- a/Koha/ItemTypes.pm +++ b/Koha/ItemTypes.pm @@ -56,7 +56,8 @@ sub search_with_localization { } ]; if(defined $params->{branchcode}) { - $self->search_with_library_limits( $params, $attributes ); + my $branchcode = delete $params->{branchcode}; + $self->search_with_library_limits( $params, $attributes, $branchcode ); } else { $self->SUPER::search( $params, $attributes ); } -- 2.39.5