]> git.koha-community.org Git - koha.git/commit
Bug 30045: (bug 29543 follow-up) Fix SCO print slip
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 8 Feb 2022 11:12:22 +0000 (12:12 +0100)
committerKyle Hall <kyle@bywatersolutions.com>
Fri, 11 Feb 2022 11:20:19 +0000 (06:20 -0500)
commit72fa33490b71d91658c32493c687b1c5a37dc1df
tree5df557d37fffa5a35b2caa119ff5ba904a9e61f2
parent9f7e99b8c4914fcf38d5a31e499ab716f3e50ab1
Bug 30045: (bug 29543 follow-up) Fix SCO print slip

Certainly since bug 29543 and bug 29914.

We should do the same authentication check than sco-main.pl, and also
make sure to generate the checkout history only for the logged in patron
(the OPAC one, not staff member)

Test plan:
Use the different combinations of the SCO config (AutoSelfCheckAllowed,
SelfCheckoutByLogin and WebBasedSelfCheck) and confirm that this patch
fixes the SCO print slip feature.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt
opac/sco/printslip.pl