From: Ian Walls <[email protected]> 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 <[email protected]> Signed-off-by: Nicole C. Engard <[email protected]> --- C4/Reserves.pm | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/C4/Reserves.pm b/C4/Reserves.pm index 87e2325..fde1223 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'}; -- 1.7.2.3 _______________________________________________ Koha-patches mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
