[Koha-bugs] [Bug 22243] New: Advanced Cataloguer editor fails if the target contains an apostrophe in the name
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Jan 31 10:38:38 CET 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22243
Bug ID: 22243
Summary: Advanced Cataloguer editor fails if the target
contains an apostrophe in the name
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: Cataloging
Assignee: koha-bugs at lists.koha-community.org
Reporter: andrew.isherwood at ptfs-europe.com
QA Contact: testopia at bugs.koha-community.org
CC: m.de.rooy at rijksmuseum.nl
Target Milestone: ---
As the title, if a z39.50 target has an apostrophe in the name, the editor
fails with an "Unexpected token" Javascript error. The array containing the
targets is constructed then embedded in the page template and, since the string
is enclosed in unescaped single apostrophes, things fall over.
The fix is to replace ' in target names with '
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list