Bugzilla – Attachment 75046 Details for
Bug 20685
Modify letter template does not render correctly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20685: Escape letter template content in textarea
Bug-20685-Escape-letter-template-content-in-textar.patch (text/plain), 2.32 KB, created by
Katrin Fischer
on 2018-05-04 05:45:50 UTC
(
hide
)
Description:
Bug 20685: Escape letter template content in textarea
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2018-05-04 05:45:50 UTC
Size:
2.32 KB
patch
obsolete
>From 392291a530e4fadcffd771ff756fc1d83c52519c Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 3 May 2018 15:40:11 -0300 >Subject: [PATCH] Bug 20685: Escape letter template content in textarea >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Test plan: >enter the following text into the Email template for 'HOLD_SLIP' >in Home ⺠Tools ⺠Notices & Slips ⺠Modify notice > ><div style='max-width: 4in;'> ><h3><<borrowers.surname>>, <<borrowers.firstname>></h3><br /> ><<borrowers.streetnumber>> <<borrowers.address>><br /> ><<borrowers.address2>><br /> ><<borrowers.city>>, <<borrowers.state>> <<borrowers.zipcode>><br /> ><br /> ><br /> ><img src="/cgi-bin/koha/svc/barcode?barcode=<<borrowers.cardnumber>>&type=Industrial2of5¬ext=1"> > >Edit it again >Without this patch you will get: ><img src="/cgi-bin/koha/svc/barcode?barcode=<<borrowers.cardnumber>>&type=Industrial2of5¬ext=1"> > >Signed-off-by: Barton Chittenden <barton@bywatersolutions.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt >index d7cfab2..7149499 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt >@@ -360,7 +360,7 @@ > <td class="actions"> > <button type="button" data-containerid="[% letter.message_transport_type %]_[% lang %]" class="btn btn-default btn-sm insert">Insert <i class="fa fa-long-arrow-right"></i></button> > </td> >- <td><textarea name="content" data-lang="[% lang %]" class="content_[% letter.message_transport_type %]" id="content_[% letter.message_transport_type %]_[% lang %]" cols="80" rows="15">[% letter.content %]</textarea></td> >+ <td><textarea name="content" data-lang="[% lang %]" class="content_[% letter.message_transport_type %]" id="content_[% letter.message_transport_type %]_[% lang %]" cols="80" rows="15">[% letter.content | html %]</textarea></td> > </tr> > </table> > </li> >-- >2.1.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 20685
:
75022
|
75039
| 75046