From bbaa52bbbea6875816c2c815bcd418a16271b608 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 If the name is not in email, the name is not correctly retrieved. Signed-off-by: Jonathan Druart --- tools/letter.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.10.4