Bug 32123 - CRASH: Can't use an undefined value as a HASH reference at circ/article-requests.pl line 38
Summary: CRASH: Can't use an undefined value as a HASH reference at circ/article-reque...
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks: 32124
  Show dependency treegraph
 
Reported: 2022-11-07 15:01 UTC by Marcel de Rooy
Modified: 2023-12-28 20:42 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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?