From adb725c4487dddab8cfcdf2f5ee6a3768c93bfe0 Mon Sep 17 00:00:00 2001 From: Hammat Wele Date: Wed, 18 Jan 2023 17:40:26 +0000 Subject: [PATCH] Bug 32675: Cannot add a guarantor when there is a single quote in the guarantor attributes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It's impossible to select a guarantor when there is a single quote in the guarantor attributes. This patch allows to add a guarantor even if there is a single quote in guarantor attributes. Test plan 1. Find two patrons: - Patron 1 = guarantee - Patron 2 = guarantor 2. In the patron 2 account, add a single quote in one of the 'Alternate address' or 'Contact information' fields (like the 'Address' field) for example type «L'Aqueduc» in the field and save 3. Edit the patron 1 and click on 'Add guarantor' 4. Search for the patron 2 5. Click on 'Select' --> Nothing happens 6. Apply the patch 9. repeat step 3, 4 and 5 10. Now Patron 2 is added as guarantor Signed-off-by: Lucas Gass --- koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc | 2 +- 1 file changed, 1 insertion(+), 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 b4589b12019..edf7cbf4eca 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc @@ -626,7 +626,7 @@ [% FOR action IN actions %] [% SWITCH action %] [% CASE 'select' %] - action_node += 'Select'; + action_node += 'Select'; [% CASE 'add' %] action_node += 'Add'; [% CASE 'edit' %] -- 2.30.2