Bug 10845: (follow-up) add the MTT in the die message

If no template is defined for the HOLD letter and the needed MTT, we
should display the MTT.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
This commit is contained in:
Jonathan Druart 2014-04-23 16:48:54 +02:00 committed by Galen Charlton
parent 777814a260
commit 7e878d42a0

View file

@ -1930,7 +1930,7 @@ sub _koha_notify_reserve {
$letter_params{letter_code} = $letter_code;
$letter_params{message_transport_type} = $mtt;
my $letter = C4::Letters::GetPreparedLetter ( %letter_params )
or die "Could not find a letter called '$letter_params{'letter_code'}' in the 'reserves' module";
or die "Could not find a letter called '$letter_params{'letter_code'}' for $mtt in the 'reserves' module";
C4::Letters::EnqueueLetter( {
letter => $letter,