[Koha-bugs] [Bug 29002] Add ability to book items ahead of time

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jan 11 12:49:26 CET 2024


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29002

--- Comment #59 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
(In reply to Jonathan Druart from comment #53)
> (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"

Submitted your proposed patch to bug 35772

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list