From 7d9af47e0294a0dd8455caccd86550e38f1c732d Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 6 Dec 2018 12:53:24 -0300 Subject: [PATCH] Bug 21910: Does not deal with call context, ->search does already Signed-off-by: Jonathan Druart --- Koha/Library/Groups.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Koha/Library/Groups.pm b/Koha/Library/Groups.pm index d4521b0620..1ce2cb019a 100644 --- a/Koha/Library/Groups.pm +++ b/Koha/Library/Groups.pm @@ -62,9 +62,7 @@ sub get_search_groups { my $field = $interface eq 'staff' ? 'ft_search_groups_staff' : 'ft_search_groups_opac'; - my $search_groups = $self->search( { $field => 1 } ); - - return wantarray ? $search_groups->as_list : $search_groups; + return $self->search( { $field => 1 } ); } =head3 type -- 2.11.0