From b2dc6275eb4eeb8ef809765ee30257af968d8b02 Mon Sep 17 00:00:00 2001 From: Jonathan Druart 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 --- 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