From 6d3bea45a2bb303aa15c74a86177266c0ec15108 Mon Sep 17 00:00:00 2001 From: genevieve Date: Fri, 4 Sep 2015 16:41:49 -0400 Subject: [PATCH] CAM 2145 - Bug 14744 - Fix select guarantor when quote in one of the fields The quote was wrapping the onclick attribute of the select, so i have replaced all of the quotes in borrower data (only for this section) by ' (single quote for html) --- Koha/Template/Plugin/To.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Koha/Template/Plugin/To.pm b/Koha/Template/Plugin/To.pm index 6bf56b1..6c19fd2 100644 --- a/Koha/Template/Plugin/To.pm +++ b/Koha/Template/Plugin/To.pm @@ -28,6 +28,7 @@ sub json { my $json = JSON->new->allow_nonref(1); $json = $json->encode($value); + $json =~ s/'/'/g; $json =~ s/^"|"$//g; # Remove quotes around the strings return $json; } -- 1.7.9.5