From 91830275920f53534ef573a3e25007b8d183fe36 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 --- 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 4078ebf65ac..6651424b830 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.25.1