Bug 21910: Does not deal with call context, ->search does already

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2018-12-06 12:53:24 -03:00 committed by Nick Clemens
parent ee96d18b2c
commit 21372f78f8
1 changed files with 1 additions and 3 deletions

View File

@ -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