]> git.koha-community.org Git - koha.git/commit
Bug 35772: Remove double escaping
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 11 Jan 2024 11:20:55 +0000 (11:20 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Tue, 16 Jan 2024 11:06:10 +0000 (12:06 +0100)
commit96681cfa07de61ca28b9e0f1d572e1ee03f5a655
treef0d0398dd7c04ab1c669066b97dce115c435202a
parent328c5dcdfab66bc6833347796ab292b2c58e57f8
Bug 35772: Remove double escaping

Patch as proposed by Jonathan in a comment on bug 29002

If a patron has HTML character in surname or firstname, Select2 will escapeHtml twice.

To test:
* Edit a patron, set firstname: <span>test</span>
* Place booking, search for test
* It shows correctly in the result, but when you select it you will see "&lt;", etc.
* Apply patch
* Verify the display is now corrected.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
koha-tmpl/intranet-tmpl/prog/js/place_booking_modal.js