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 <chris@bigballofwax.co.nz>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
Jonathan Druart 2014-11-21 10:24:07 +01:00 committed by Tomas Cohen Arazi
parent 6f599652b1
commit ab4bb0fe5e

View file

@ -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