15 Feb
2026
15 Feb
'26
11:42 p.m.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40000 --- Comment #27 from David Cook <dcook@prosentient.com.au> --- I've suggested on Mattermost that we start using <script type="application/json"> for storing Template::Toolkit output for Javascript. So above the Javascript <script> where you've added the logic, you could add <script id="anonymous_patron_id" type="application/json"> [% To.json(Koha.Preference('AnonymousPatron')) | $raw %] </script> You don't have to use the To.json but then you definitely need a try/catch in your JS to make sure you can handle invalid data in there. -- You are receiving this mail because: You are watching all bug changes.