From 34694d7621d844b4d967f11d311530a8ca21abb2 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Wed, 8 Feb 2023 23:28:59 +0000 Subject: [PATCH] Bug 32921: Honor SelfCheckTimeout when modal is open To test: 1. Set the 'SelfCheckTimeout' system preference to something low for testing. 2. Make sure 'SelfCheckReceiptPrompt' is set to 'Show'. 3. Log in to SCO and press finish but leave the modal open. 4. Wait until the 'SelfCheckTimeout' time has expired, nothing happens. 5. Apply patch and try again. You should be logged out when SelfCheckTimeout expires. Signed-off-by: Marius Mandrescu JD amended patch - fix indentation Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi (cherry picked from commit e074ffa6be15c97e6724041b12d930ed70855f1d) Signed-off-by: Martin Renvoize (cherry picked from commit 3d75bf866bb05e0a8ab457ed3f48a2e84243bfb9) Signed-off-by: Lucas Gass (cherry picked from commit 0f05431e3469139d714e7b86ea137d6e08ad370c) Signed-off-by: Arthur Suzuki --- koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt | 1 + 1 file changed, 1 insertion(+) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt index 0078f68fb0..0815dc00b6 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt @@ -529,6 +529,7 @@ location.href = '/cgi-bin/koha/sco/sco-main.pl?op=logout'; } }) + sco_init(); [% ELSE %] location.href = '/cgi-bin/koha/sco/sco-main.pl?op=logout'; [% END %] -- 2.39.5