Use of uninitialized value in string eq at /usr/share/koha/shadowclone/Koha/Template/Plugin/Branches.pm line 68.
Created attachment 70793 [details] [review] Bug 20060: Resolve uninitialized warn from Koha::Template::Plugin::Branches 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>
To convince you. This is how userenv looks: $VAR1 = { 'branchprinter' => undef, 'emailaddress' => undef, 'branchname' => undef, 'surname' => undef, 'branch' => undef, 'persona' => undef, 'firstname' => undef, 'cardnumber' => undef, 'id' => '', 'barshelves' => undef, 'pubshelves' => undef, 'shibboleth' => undef, 'totshelves' => undef, 'flags' => undef, 'number' => undef };
Created attachment 71078 [details] [review] Bug 20060: Resolve uninitialized warn from Koha::Template::Plugin::Branches 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> Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
I triggered this with just "localhost:8081" in the address bar in chrome. A url with mainpage did not trigger it for me.
(In reply to M. Tompsett from comment #4) > I triggered this with just "localhost:8081" in the address bar in chrome. A > url with mainpage did not trigger it for me. Thx for signing off. Mainpage triggered it while being logged out iirc.
Created attachment 71169 [details] [review] Bug 20060: Resolve uninitialized warn from Koha::Template::Plugin::Branches 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> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
localhost:8081/cgi-bin/koha/mainpage.pl did it for me.
Pushed to master for 18.05, thanks to everybody involved!
Awesome work all, pushed to stable for 17.11.03