https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36139
Bug ID: 36139
Summary: Bug 35518 follow-up: fix AutoSwitchPatron
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: trivial
Priority: P5 - low
Component: Circulation
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected], [email protected]
Bug 35518 moved some code blocks to after the call to get_user_and_template()
so that userenv would be populated before it was needed.
This caused a couple variables to be set before the AutoSwitchPatron block
could prevent them from being set. Which broke AutoSwitchPatron functionality.
This clears two variable so that AuthSwitchPatron works again.
Test plan:
1. Ensure AutoSwitchPatron is turned on.
2. Select the card number of two patron accounts.
3. Find the first patron in circulation.
4. Enter the second patron's card number in the item barcode field to switch
patrons.
5. Observe the error about item barcode not existing, and the patron did not
switch.
6. Apply patch and restart services.
7. Enter the second patron's card number in the item barcode field again.
8. Observe that the patron was switched with no error about an invalid barcode.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/