Jonathan reported: If a patron has HTML character in surname or firstname, Select2 will escapeHtml twice. To recreate 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 "<", etc.
Created attachment 160832 [details] [review] Bug 35772: Remove double escaping Patch as proposed by Jonathan in a comment on bug 29002
Created attachment 160895 [details] [review] Bug 35772: Remove double escaping Patch as proposed by Jonathan in a comment on bug 29002 Signed-off-by: David Nind <david@davidnind.com>
Testing notes (using KTD): 1. Replicated the issue as per comment #1 2. Applied the patch. 3. Repeated step 1. 4. Name now displays (with HTML code shown). Note: IN KTD I had to set DefaultPatronSearchMethod to 'Contains', otherwise searching for Test didn't return any autocomplete results.
Created attachment 160965 [details] [review] Bug 35772: Remove double escaping Patch as proposed by Jonathan in a comment on bug 29002 Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Please include test plan in commits ;) I added one in RM step.
Pushed for 24.05! Well done everyone, thank you!
Pushed to 23.11.x for 23.11.02