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:
Jonathan Druart 2018-12-06 12:53:24 -03:00 committed by Martin Renvoize
parent 5ab5318180
commit 7b849d70e7
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
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