Bug 10845: (follow-up) add the MTT in the die message
authorJonathan Druart <jonathan.druart@biblibre.com>
Wed, 23 Apr 2014 14:48:54 +0000 (16:48 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 2 May 2014 20:29:19 +0000 (20:29 +0000)
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>
C4/Reserves.pm

index 6c06e2c..339621b 100644 (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,