Koha-clms/Koha/Template/Plugin
Kyle M Hall 9cd9240c36 Bug 19655: Make To.json escape doesn't escape newlines to create valid JSON
JSON does not allow real line-breaks. If a field contains them and they are not escaped, a JSON parser will be unable to convert the stringified JSON back into an object.

This is clearly exemplified by the guarantor search, where a multi-line note on the guarantor's record will break the ability to select that guarantor.

Test Plan:
1) Create Patron A with a "Circulation note" that has multiple lines in it
2) Create Patron B
3) Attempt to set Patron A to be the guarantor for Patron B
4) Note selecting the patron does nothing
5) Apply this patch
6) Repeat step 3
7) Selecting the guarantor now works!

Signed-off-by: Simon Pouchol <simon.pouchol@biblibre.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2017-11-26 12:59:04 -03:00
..
AudioAlerts.pm Bug 11431: (QA followup) Move AudioAlerts to a separate plugin 2015-11-04 12:33:10 -03:00
AuthorisedValues.pm Bug 18512 - GetAuthorisedValues.GetByCode Template plguin should return code (not empty string) if value not found 2017-05-08 08:38:11 -04:00
Biblio.pm Bug 14610 - Add and update modules 2016-10-26 12:15:13 +00:00
Borrowers.pm Bug 12461 - Add patron clubs feature 2017-04-28 08:37:44 -04:00
Branches.pm Bug 16530: Add a new method to the Branches TT Plugin to avoid c/p 2017-03-03 18:34:36 +00:00
Cache.pm Bug 17189: Add the ability to define several memcached namespaces - replace existing occurrences 2016-09-08 10:24:46 +00:00
Categories.pm Bug 15407: (follow-up) Koha::Patron::Categories - replace C4::Category->al 2016-09-08 13:29:22 +00:00
ColumnsSettings.pm Bug 10212: Columns configuration for tables 2014-08-26 09:28:03 -03:00
HtmlTags.pm Bug 18665 - Translatability: Add tt filter to allow html tags inside tt directives 2017-06-21 11:22:18 -03:00
ItemTypes.pm Bug 17843: [QA Follow-up] Some polishing 2017-07-05 13:42:21 -03:00
Koha.pm Bug 18026: Correct URL to database columns from .pref files 2017-02-21 19:54:23 +00:00
KohaDates.pm Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
Price.pm Bug 12478: fix issues caused by rebasing 2016-04-26 20:20:06 +00:00
To.pm Bug 19655: Make To.json escape doesn't escape newlines to create valid JSON 2017-11-26 12:59:04 -03:00