Bug 41033 - Warning when no cookie 'patronSessionConfirmation'
Summary: Warning when no cookie 'patronSessionConfirmation'
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: Main
Hardware: All All
: P5 - low minor
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on: 14787
Blocks: 25790
  Show dependency treegraph
 
Reported: 2025-10-16 12:14 UTC by Fridolin Somers
Modified: 2025-10-16 12:52 UTC (History)
0 users

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Crowdfunding goal: 0
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fridolin Somers 2025-10-16 12:14:07 UTC
Bug 14787 added a cookie 'patronSessionConfirmation'.
But code is using it with a strange :
my $patron_session_confirmation = $query->cookie('patronSessionConfirmation') || undef;
Then uses in split().
It generates warning :
Use of uninitialized value $patron_session_confirmation in split at circ/circulation.pl
Comment 1 Fridolin Somers 2025-10-16 12:15:07 UTC
Can we just change with empty string ?
my $patron_session_confirmation = $query->cookie('patronSessionConfirmation') || q{};