https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40000
--- Comment #27 from David Cook <[email protected]> --- 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. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
