Bugzilla – Attachment 42416 Details for
Bug 14744
Cannot select guarantor when quote in one of the fields
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
CAM 2145 - Bug 14744 - Fix select guarantor when quote in one of the fields
CAM-2145---Bug-14744---Fix-select-guarantor-when-q.patch (text/plain), 893 bytes, created by
Genevieve Plantin
on 2015-09-04 20:44:11 UTC
(
hide
)
Description:
CAM 2145 - Bug 14744 - Fix select guarantor when quote in one of the fields
Filename:
MIME Type:
Creator:
Genevieve Plantin
Created:
2015-09-04 20:44:11 UTC
Size:
893 bytes
patch
obsolete
>From 6d3bea45a2bb303aa15c74a86177266c0ec15108 Mon Sep 17 00:00:00 2001 >From: genevieve <genevieve.plantin@inlibro.com> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 14744
: 42416 |
42417
|
42419