[Koha-bugs] [Bug 31908] Context accessed but not always set on mainpage.pl

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Nov 7 21:41:04 CET 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31908

Marcel de Rooy <m.de.rooy at rijksmuseum.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://bugs.koha-community
                   |                            |.org/bugzilla3/show_bug.cgi
                   |                            |?id=32075
                 CC|                            |m.de.rooy at rijksmuseum.nl

--- Comment #4 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
-    my $local_pendingsuggestions_count = $pendingsuggestions->search({
'me.branchcode' => C4::Context->userenv()->{'branch'} })->count();
+    if( C4::Context->userenv() && C4::Context->userenv()->{branch} ){

In this case there should be a userenv. Why it isnt? Reported this too on bug
32075. Weird.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list