[Koha-bugs] [Bug 36235] New: System preferences chopping everything after a semicolon.
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Mar 5 16:21:40 CET 2024
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36235
Bug ID: 36235
Summary: System preferences chopping everything after a
semicolon.
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: critical
Priority: P5 - low
Component: System Administration
Assignee: koha-bugs at lists.koha-community.org
Reporter: lucas at bywatersolutions.com
QA Contact: testopia at bugs.koha-community.org
CC: gmcharlt at gmail.com
I noticed this with IntranetUserJS. To recreate:
1. Add some JS that includes a semicolon to IntranetUserJS:
$(document).ready(function() {
let my_old_cat = $('#categorycode_entry').val();
console.log(my_old_cat);
$('#categorycode_entry').on('change' , function() {
let my_new_cat = $('#categorycode_entry').val();
console.log( my_old_cat );
console.log( my_new_cat );
});
});
2. Save and reload, or check in DB and you'll see this value:
$(document).ready(function() {
let my_old_cat = $('#categorycode_entry').val()
To see in DB you can use:
select value from systempreferences where variable = 'IntranetUserJS';
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list