Bug 23599: Avoid exploding in search_with_library_limits when no library is passed
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 12 Sep 2019 14:38:14 +0000 (11:38 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 12 Sep 2019 15:00:41 +0000 (16:00 +0100)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Objects/Limit/Library.pm

index 2b54370..bb10f11 100644 (file)
@@ -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