https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29002
--- Comment #53 from Jonathan Druart <[email protected]> --- (In reply to Jonathan Druart from comment #52) > 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. This should fix the problem. diff --git a/koha-tmpl/intranet-tmpl/prog/js/place_booking_modal.js b/koha-tmpl/intranet-tmpl/prog/js/place_booking_modal.js index 4cf49eb0da5..e8a5b0982c5 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/place_booking_modal.js +++ b/koha-tmpl/intranet-tmpl/prog/js/place_booking_modal.js @@ -100,7 +100,7 @@ $('#placeBookingModal').on('show.bs.modal', function(e) { return patron.text; } return ( - escape_str(patron.surname) + ", " + escape_str(patron.firstname) + patron.surname + ", " + patron.firstname ); }, placeholder: "Search for a patron" -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
