From c4d5a5bb70cfdbabc4e53a5c6c63ff7967c35e9e Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 22 Feb 2023 16:31:54 +0100 Subject: [PATCH] Bug 32675: [alternative patch] Fix guarantor selection when simple quote present Signed-off-by: Lucas Gass --- koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc index 4078ebf65a..6651424b83 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc @@ -612,7 +612,11 @@ [% FOR action IN actions %] [% SWITCH action %] [% CASE 'select' %] - action_node += 'Select'; + let patron_str = JSON.stringify(row); + action_node += 'Select'; + let input_node = $(''); + $(input_node).val(patron_str); + action_node += $(input_node).prop('outerHTML'); [% CASE 'add' %] action_node += 'Add'; [% CASE 'edit' %] -- 2.30.2