]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 17 Jan 2024 09:31:41 +0000 (10:31 +0100)
commit95ed5002721db9bc957116149a6bc8454b06a7c4
tree08b37ada1ef65eab362db6782ff009ade9e739ff
parentf7915af15f9a771ed9000fa8d4a5880e250e9ca5
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>
(cherry picked from commit 96681cfa07de61ca28b9e0f1d572e1ee03f5a655)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/js/place_booking_modal.js