Bugzilla – Attachment 119956 Details for
Bug 23271
Koha::Patron::Category should use Koha::Object::Limit::Library
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23271: Fix Template/Plugin/Branches.t
Bug-23271-Fix-TemplatePluginBranchest.patch (text/plain), 1.44 KB, created by
Jonathan Druart
on 2021-04-21 14:58:04 UTC
(
hide
)
Description:
Bug 23271: Fix Template/Plugin/Branches.t
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-04-21 14:58:04 UTC
Size:
1.44 KB
patch
obsolete
>From 38cb92fd7b101aef747c48d7847b500e7397703c Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 21 Apr 2021 16:57:08 +0200 >Subject: [PATCH] Bug 23271: Fix Template/Plugin/Branches.t > > # Failed test 'Without selected parameter, my library should be preselected' > # at t/db_dependent/Template/Plugin/Branches.t line 81. > # got: '0' > # expected: '1' >--- > Koha/Template/Plugin/Branches.pm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/Koha/Template/Plugin/Branches.pm b/Koha/Template/Plugin/Branches.pm >index 58b84d18e0..92c83be68c 100644 >--- a/Koha/Template/Plugin/Branches.pm >+++ b/Koha/Template/Plugin/Branches.pm >@@ -58,7 +58,7 @@ sub GetURL { > > sub all { > my ( $self, $params ) = @_; >- my $selected = $params->{selected} || (); >+ my $selected = $params->{selected} // (); > my $unfiltered = $params->{unfiltered} || 0; > my $search_params = $params->{search_params} || {}; > my $do_not_select_my_library = $params->{do_not_select_my_library} || 0; # By default we select the library of the logged in user if no selected passed >@@ -70,7 +70,7 @@ sub all { > my @selected = > ref $selected eq 'Koha::Libraries' > ? $selected->get_column('branchcode') >- : $selected; >+ : ( $selected // () ); > > my $libraries = $unfiltered > ? Koha::Libraries->search( $search_params, { order_by => ['branchname'] } )->unblessed >-- >2.20.1
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 23271
:
94292
|
94293
|
94294
|
119503
|
119504
|
119505
|
119529
|
119530
|
119531
|
119532
|
119533
|
119537
|
119579
|
119580
|
119581
|
119582
|
119583
|
119584
|
119772
|
119773
|
119774
|
119775
|
119776
|
119777
|
119939
| 119956 |
119957
|
120054