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:
parent
ee96d18b2c
commit
21372f78f8
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue