Bugzilla – Attachment 74033 Details for
Bug 17981
Add the ability to preview generated notice templates
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17981: Do not crash if the template is already using TT syntax
Bug-17981-Do-not-crash-if-the-template-is-already-.patch (text/plain), 912 bytes, created by
Josef Moravec
on 2018-04-11 19:27:01 UTC
(
hide
)
Description:
Bug 17981: Do not crash if the template is already using TT syntax
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2018-04-11 19:27:01 UTC
Size:
912 bytes
patch
obsolete
>From b2dc6275eb4eeb8ef809765ee30257af968d8b02 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 11 Apr 2018 15:55:04 -0300 >Subject: [PATCH] Bug 17981: Do not crash if the template is already using TT > syntax > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > svc/letters/preview | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/svc/letters/preview b/svc/letters/preview >index 809ee72..2d0c73f 100644 >--- a/svc/letters/preview >+++ b/svc/letters/preview >@@ -233,9 +233,9 @@ if ( %$letter_params ) { > letter => $fake_tt_letter, > %$letter_params, > ); >+ $messages_are_similar = >+ $rendered_message->{content} eq $rendered_tt_message->{content}; > } >- $messages_are_similar = >- $rendered_message->{content} eq $rendered_tt_message->{content}; > } > > $template->param( >-- >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 17981
:
59508
|
59509
|
59510
|
59514
|
59524
|
63978
|
63979
|
63980
|
63981
|
63982
|
65688
|
65689
|
65690
|
65701
|
65702
|
65703
|
65704
|
65705
|
67144
|
67145
|
67146
|
67147
|
67148
|
67152
|
70300
|
70301
|
70302
|
70303
|
70304
|
70305
|
73201
|
73202
|
73203
|
73204
|
73205
|
73206
|
73949
|
73950
|
73951
|
73952
|
74025
|
74027
|
74028
|
74029
|
74030
|
74031
|
74032
| 74033 |
74034