Bug 30702

Summary: Remove Context L785 warning
Product: Koha Reporter: Marcel de Rooy <m.de.rooy>
Component: Architecture, internals, and plumbingAssignee: Marcel de Rooy <m.de.rooy>
Status: CLOSED FIXED QA Contact: Martin Renvoize <martin.renvoize>
Severity: normal    
Priority: P5 - low CC: martin.renvoize, tomascohen
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
22.05.00
Bug Depends on:    
Bug Blocks: 25790    
Attachments: Bug 30702: Fix Context.pm L785 warning on sessionID
Bug 30702: Fix Context.pm L785 warning on sessionID

Description Marcel de Rooy 2022-05-06 07:06:53 UTC
Adding a trivial fix here before working on bug 29954
Comment 1 Marcel de Rooy 2022-05-06 07:07:26 UTC
Use of uninitialized value $sessionID in string eq at /usr/share/koha/C4/Context.pm line 785.
Comment 2 Marcel de Rooy 2022-05-06 07:17:34 UTC
Created attachment 134673 [details] [review]
Bug 30702: Fix Context.pm L785 warning on sessionID

Trivial fix. Before working on bug 29954.

Test plan:
Run a few tests like t/Context.t, t/db_dependent/Auth.t and
t/db_dependent/Circulation.t.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Comment 3 Marcel de Rooy 2022-05-06 07:18:15 UTC
Trivial: self SO
Comment 4 Martin Renvoize 2022-05-06 08:52:40 UTC
Created attachment 134712 [details] [review]
Bug 30702: Fix Context.pm L785 warning on sessionID

Trivial fix. Before working on bug 29954.

Test plan:
Run a few tests like t/Context.t, t/db_dependent/Auth.t and
t/db_dependent/Circulation.t.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Comment 5 Martin Renvoize 2022-05-06 08:53:20 UTC
Always nice to squash warnings.

All works as expected, no regressions.

PQA
Comment 6 Fridolin Somers 2022-05-06 20:35:21 UTC
Pushed to master for 22.05, thanks to everybody involved 🦄