Bug 13215: Fix notice edition
authorJonathan Druart <jonathan.druart@biblibre.com>
Fri, 21 Nov 2014 09:24:07 +0000 (10:24 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 27 Nov 2014 14:42:18 +0000 (11:42 -0300)
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>
tools/letter.pl

index 0f2b501..66d78be 100755 (executable)
@@ -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