From 49b8f141a0c24ed2e289b979223784c19560578b Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 16 Apr 2019 10:34:56 -0400 Subject: [PATCH] Bug 22715: Searching for patrons with "" in the circulation note hangs patron search To replicate: Edit a patron to have a circ note, include quoted text in it, such as "this is quoted string" Go to the patron search, search for a set of results that would include the patron with the quotes in the note Enjoy looking at "Processing" for forever. Test Plan: 1) Apply this patch 2) Attempt to replicate using the steps above Signed-off-by: Liz Rea Signed-off-by: Katrin Fischer --- .../intranet-tmpl/prog/en/modules/members/tables/members_results.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/members_results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/members_results.tt index 607146e269..92ba8602e3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/members_results.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/members_results.tt @@ -31,7 +31,7 @@ "dt_fines": "[% IF data.fines < 0 %][% data.fines | $Price %] [% ELSIF data.fines > 0 %] [% data.fines | $Price %] [% ELSE %] [% data.fines | $Price %] [% END %]", "dt_borrowernotes": - "[% data.borrowernotes.replace('\\\\' , '\\\\') |html_line_break |collapse %]", + "[% data.borrowernotes.replace('\\\\' , '\\\\') | replace( "'", "\\'" ) | replace( '"', '\\"' ) |html_line_break |collapse %]", "dt_action": " Edit", "borrowernumber": -- 2.11.0