From 26965cf1dfe4a8a34a97280c0aba72a8b59d7e4a Mon Sep 17 00:00:00 2001 From: Ian Walls Date: Wed, 22 Jun 2011 10:09:22 -0700 Subject: [PATCH] Bug 6525: hold filled emails not going out When the message name was updated from "Hold Filled" to "Hold_Filled" for T::T compatibility, the line in _koha_notify_reserve that looked up the letter code by the message name no longer matched, so none of the messages were sent. This patch just replaces the space with an underscore to get the names aligned properly. Signed-off-by: Ian Walls Signed-off-by: Nicole C. Engard Signed-off-by: Chris Cormack --- C4/Reserves.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Reserves.pm b/C4/Reserves.pm index 87e23251a0..fde1223a88 100644 --- a/C4/Reserves.pm +++ b/C4/Reserves.pm @@ -1666,7 +1666,7 @@ sub _koha_notify_reserve { my $print_mode = 0; my $messagingprefs; if ( $borrower->{'email'} || $borrower->{'smsalertnumber'} ) { - $messagingprefs = C4::Members::Messaging::GetMessagingPreferences( { borrowernumber => $borrowernumber, message_name => 'Hold Filled' } ); + $messagingprefs = C4::Members::Messaging::GetMessagingPreferences( { borrowernumber => $borrowernumber, message_name => 'Hold_Filled' } ); return if ( !defined( $messagingprefs->{'letter_code'} ) ); $letter_code = $messagingprefs->{'letter_code'}; -- 2.39.5