]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 10 Feb 2022 01:36:24 +0000 (15:36 -1000)
commit0757b0976f705d72942d7849b9aa6b35d5f0148d
tree2694279cf733f9fe44074c80762ee888c6c269df
parent8a1113376ce8c9be974ad2daed3ec5458ba77606
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>
koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt
opac/sco/printslip.pl