Bugzilla – Attachment 70793 Details for
Bug 20060
Uninitialized warn from Koha::Template::Plugin::Branches
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20060: Resolve uninitialized warn from Koha::Template::Plugin::Branches
Bug-20060-Resolve-uninitialized-warn-from-KohaTemp.patch (text/plain), 1.19 KB, created by
Marcel de Rooy
on 2018-01-22 12:50:05 UTC
(
hide
)
Description:
Bug 20060: Resolve uninitialized warn from Koha::Template::Plugin::Branches
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2018-01-22 12:50:05 UTC
Size:
1.19 KB
patch
obsolete
>From 27e6741ec8db0cbec8433b3205656860e30399ae Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Mon, 22 Jan 2018 13:04:33 +0100 >Subject: [PATCH] Bug 20060: Resolve uninitialized warn from > Koha::Template::Plugin::Branches >Content-Type: text/plain; charset=utf-8 > >The warn comes from undefined C4::Context->userenv->{branch}. >Can be triggered by calling mainpage.pl when being logged out in staff. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > Koha/Template/Plugin/Branches.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/Template/Plugin/Branches.pm b/Koha/Template/Plugin/Branches.pm >index edbad11..8c4bb14 100644 >--- a/Koha/Template/Plugin/Branches.pm >+++ b/Koha/Template/Plugin/Branches.pm >@@ -66,7 +66,7 @@ sub all { > > for my $l ( @$libraries ) { > if ( defined $selected and $l->{branchcode} eq $selected >- or not defined $selected and C4::Context->userenv and $l->{branchcode} eq C4::Context->userenv->{branch} >+ or not defined $selected and C4::Context->userenv and $l->{branchcode} eq ( C4::Context->userenv->{branch} // q{} ) > ) { > $l->{selected} = 1; > } >-- >2.1.4
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 20060
:
70793
|
71078
|
71169