Bugzilla – Attachment 63652 Details for
Bug 18655
Unimarc field 210c fails on importing fields with a simple quote
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18655: Followup
Bug-18655-Followup.patch (text/plain), 1.78 KB, created by
Fridolin Somers
on 2017-05-23 13:35:16 UTC
(
hide
)
Description:
Bug 18655: Followup
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2017-05-23 13:35:16 UTC
Size:
1.78 KB
patch
obsolete
>From e69eb5059722aea6257bbe64299f2c31f93df174 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Tue, 23 May 2017 15:34:16 +0200 >Subject: [PATCH] Bug 18655: Followup > >--- > .../modules/cataloguing/value_builder/unimarc_field_210c.tt | 12 +++++------- > 1 file changed, 5 insertions(+), 7 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_210c.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_210c.tt >index f2106fc..a1e9469 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_210c.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_210c.tt >@@ -64,7 +64,8 @@ > <td>[% resul.used %] times</td> > <td> > [% IF ( resul.to_report ) %] >- <button id='import'><img alt="choose" src="[% interface %]/[% theme %]/images/arrow.gif" width="32" /></button> >+ <button class="choosebt">Choose</button> >+ <p class="toreport" style="display:none">[% resul.to_report |replace('\n', '\\n') |replace('\r', '\\r') |html %]</p> > [% END %] > </td> > </tr> >@@ -79,13 +80,10 @@ > [% END %] > <script type="text/javascript"> > //<![CDATA[ >- > $( document ).ready( function(){ >- $('#import').on('click', function(){ >- var temp = "[% resul.to_report| replace('"', '\"') %]"; >- temp.replace( "'", "\\'"); >- temp.replace( "\\r", "\\\\r"); >- report( temp ); >+ $(".choosebt").on("click", function(){ >+ var toreport = $(this).siblings(".toreport").text(); >+ report(toreport); > }); > }); > >-- >2.7.4
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 18655
:
63644
|
63652
|
63653
|
76168
|
78710
|
78865
|
80315