From 0e5891f944854ad92c5f590803e46431ba58b8d0 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 (cherry picked from commit e4665cc2baabe6bdcd1260492401f07e5f6e3d4f) Signed-off-by: Matt Blenkinsop (cherry picked from commit 33be1b11c864d29e5ae55d25aa515918ff4e089e) 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 79fa0a7eeb..57c52a0f42 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc @@ -606,7 +606,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