From 21372f78f825c0ec439ea4a7cfe7dff6656467b9 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 Signed-off-by: Nick Clemens --- 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.39.5