From a657ac6833894b5e0f584df2383cf5b9d0cb6265 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 27 Mar 2014 16:00:57 +0100 Subject: [PATCH] Bug 9016: (follow-up) 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 Signed-off-by: Marcel de Rooy Signed-off-by: Galen Charlton --- tools/letter.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/letter.pl b/tools/letter.pl index 30ce3d2872..789efccd53 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}, ); -- 2.39.5