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>
(cherry picked from commit 21372f78f8)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
5ab5318180
commit
7b849d70e7
|
|
@ -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