Bug 31496: Fix branch in printslip.pl to logged in staff user's library
authorLari Strand <lmstrand@gmail.com>
Wed, 31 Aug 2022 12:39:42 +0000 (15:39 +0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 26 Sep 2022 13:52:42 +0000 (10:52 -0300)
commit6d3314354ef86e4577a36fb82e4594a5c88e9b51
tree74a17a54f71294673d75d1ccf992b612b42dd224
parent94da0ccf0a2afe61671ecfbf018c6447c9a40443
Bug 31496: Fix branch in printslip.pl to logged in staff user's library

When you print a receipt slip in SCO, the library/branch you are at
in should be fetched from the logged in staff member's data (staff login
done before entering SCO view) instead of the patron's own who has signed
in to the SCO. Printing a slip shows patron's own home branch in the slip
as the branch they're in. This causes confusion with patrons who want to
print receipts/slips.

Test plan:
1) Make sure the staff user's library (used to login into SCO patron
   view) is not the same as the patron's who is logging into SCO
2) Print a slip in SCO and notice patron's home library printed on the slip
3) Apply patch
4) Print a slip in SCO and notice the library is now the staff user's library
   used to sign in to SCO patron view.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
opac/sco/printslip.pl