Bug 42200: Convert milliseconds to seconds for SelfCheckInTimeout

To test:

1. Set, or leave, the SelfCheckTimeout at 120 seconds
2. Log in to SCO module
3. You will be logged out in 120 milliseconds
4. APPLY PATCH, clear browser cache
5. SelfCheckTimeout should work in seconds again.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: David Cook <dcook@prosentient.com.au>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Lucas Gass 2026-03-26 19:47:35 +00:00
parent f6addef698
commit 38bf53404e
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 1 additions and 1 deletions

View File

@ -416,7 +416,7 @@
<script nonce="[% Koha.CSPNonce | $raw %]">
addPrefs({
OPACTableColExpandedByDefault: [% Koha.Preference('OPACTableColExpandedByDefault') ? 1 : 0 | html %],
SelfCheckTimeout: "[% Koha.Preference('SelfCheckTimeout') | html %]",
SelfCheckTimeout: "[% Koha.Preference('SelfCheckTimeout') * 1000 | html %]",
SelfCheckReceiptPrompt: [% Koha.Preference('SelfCheckReceiptPrompt') ? 1 : 0 | html %],
});
const logged_in_user_cardnumber = "[% patronid | html %]";