From bd00d5a607bfe1fa972e4fc60b0215fe3129408a Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Thu, 12 Sep 2019 11:38:14 -0300 Subject: [PATCH] Bug 23599: Avoid exploding in search_with_library_limits when no library is passed Signed-off-by: Tomas Cohen Arazi --- Koha/Objects/Limit/Library.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Objects/Limit/Library.pm b/Koha/Objects/Limit/Library.pm index 2b54370d23..bb10f11e0d 100644 --- a/Koha/Objects/Limit/Library.pm +++ b/Koha/Objects/Limit/Library.pm @@ -53,7 +53,7 @@ limits sub search_with_library_limits { my ( $self, $params, $attributes, $library_id ) = @_; - return $self->SUPER::search( $params, $attributes ) unless $library_id; + return $self->search( $params, $attributes ) unless $library_id; my $library_limits = $self->object_class()->_library_limits; my $library_limits_table -- 2.23.0