From e4665cc2baabe6bdcd1260492401f07e5f6e3d4f Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 22 Feb 2023 16:31:54 +0100 Subject: [PATCH] Bug 32675: Fix guarantor selection when simple quote present Signed-off-by: Lucas Gass Signed-off-by: Nick Clemens Signed-off-by: Tomas Cohen Arazi --- 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.39.5