[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
Tue Nov 8 14:37:29 CET 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31908
--- Comment #9 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
>From 20.11.x:
#if a user enters an id ne to the id in the current session, we
need to log them in...
#first we need to clear the anonymous session...
$debug and warn "query id = $q_userid but session id = $s_userid";
$anon_search_history = $session->param('search_history');
$session->delete();
$session->flush;
C4::Context->_unset_userenv($sessionID);
$sessionID = undef;
$userid = undef;
See former comment too.
Note that probably in the 2FA changes, this $userid line got "lost" somewhere.
So I propose to reinsert it here.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list