Bugzilla – Attachment 82917 Details for
Bug 21910
Koha::Library::Groups->get_search_groups should return the groups, not the children
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21910: Does not deal with call context, ->search does already
Bug-21910-Does-not-deal-with-call-context--search-.patch (text/plain), 911 bytes, created by
Jonathan Druart
on 2018-12-06 15:54:00 UTC
(
hide
)
Description:
Bug 21910: Does not deal with call context, ->search does already
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-12-06 15:54:00 UTC
Size:
911 bytes
patch
obsolete
>From 7d9af47e0294a0dd8455caccd86550e38f1c732d Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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 <jonathan.druart@bugs.koha-community.org> >--- > 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.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 21910
:
82741
|
82755
|
82766
|
82915
|
82916
| 82917