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: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected]
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.
_______________________________________________
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/