From ab4bb0fe5e9d0e28b47020c1b4af330d1b548204 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 21 Nov 2014 10:24:07 +0100 Subject: [PATCH] Bug 13215: Fix notice edition C4::Letters::getletter does not set mtt in value ( i.e. { email => "my email notice} ) at the contrary of the get_letter routine defined in tools/letters.pl. Signed-off-by: Chris Cormack Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- tools/letter.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/letter.pl b/tools/letter.pl index 0f2b5018a0..66d78be00a 100755 --- a/tools/letter.pl +++ b/tools/letter.pl @@ -259,7 +259,7 @@ sub add_validate { delete_confirmed( $branchcode, $oldmodule, $code, $mtt ); next; } - elsif ( exists $letter->{$mtt} ) { + elsif ( $letter->{message_transport_type} eq $mtt ) { $dbh->do( q{ UPDATE letter -- 2.39.5