Bug 32123

Summary: CRASH: Can't use an undefined value as a HASH reference at circ/article-requests.pl line 38
Product: Koha Reporter: Marcel de Rooy <m.de.rooy>
Component: Architecture, internals, and plumbingAssignee: Bugs List <koha-bugs>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: jonathan.druart, nick
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31908
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on:    
Bug Blocks: 32124    

Description Marcel de Rooy 2022-11-07 15:01:10 UTC
Looks like bug 32075.
Just another case where userenv returns undef.

my $branchcode = defined( $query->param('branchcode') ) ? $query->param('branchcode') : C4::Context->userenv->{'branch'};

This line is just after get_template_and_user so we should expect it?
Comment 1 Jonathan Druart 2022-11-25 09:11:57 UTC
How do you recreate the error?
Comment 2 Marcel de Rooy 2022-11-25 09:25:39 UTC
(In reply to Jonathan Druart from comment #1)
> How do you recreate the error?

It has been addressed. Check see also. Comes from Auth..
Comment 3 Jonathan Druart 2022-11-25 10:00:50 UTC
31908 is not pushed yet, and I don't recreate the problem on master.

If addressed, do we close this one then?