From 8c2e559ba0b000d6b1ac562c60297df39f422c6c Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 27 Mar 2014 16:00:57 +0100 Subject: [PATCH] Bug 9016: (followup) FIX letter name is not displayed on editing a letter Content-Type: text/plain; charset=utf-8 If the name is not in email, the name is not correctly retrieved. Signed-off-by: Jonathan Druart Signed-off-by: Marcel de Rooy --- tools/letter.pl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/letter.pl b/tools/letter.pl index 30ce3d2..789efcc 100755 --- a/tools/letter.pl +++ b/tools/letter.pl @@ -176,7 +176,7 @@ sub add_form { # So we can only sent the first one to the template. for my $mtt ( @$message_transport_types ) { # The letter_name - if ( $first_flag ) { + if ( $first_flag and $letters->{$mtt}{name} ) { $template->param( letter_name=> $letters->{$mtt}{name}, ); -- 1.7.7.6