From ac1ed982c40c8a7db53375dc42afd586285546be Mon Sep 17 00:00:00 2001 From: Eden Bacani Date: Thu, 21 Jan 2021 01:20:49 +0000 Subject: [PATCH] Bug 24447: Changing 'DUE' to example in database that exists. Test Plan: 1.Using perldoc C4/Members/Messaging.pm check that message_name attribute name example is Item_Due and not DUE. Signed-off-by: Katrin Fischer Signed-off-by: Kyle M Hall Signed-off-by: Jonathan Druart (cherry picked from commit 0a0ff7c5ceab836631be060a4571681ff40e275c) Signed-off-by: Fridolin Somers (cherry picked from commit 9c4aeca752210bbb504a84d84dbe49a9394ff0a3) Signed-off-by: Andrew Fuerste-Henry (cherry picked from commit fa13840b5fad1fde76d45591a8ad7c629ace01e4) Signed-off-by: Victor Grousset/tuxayo --- C4/Members/Messaging.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/C4/Members/Messaging.pm b/C4/Members/Messaging.pm index 2270c3742e..6b66e2ee40 100644 --- a/C4/Members/Messaging.pm +++ b/C4/Members/Messaging.pm @@ -40,15 +40,17 @@ This module lets you modify a patron's messaging preferences. =head2 GetMessagingPreferences my $preferences = C4::Members::Messaging::GetMessagingPreferences( { borrowernumber => $borrower->{'borrowernumber'}, - message_name => 'DUE' } ); + message_name => 'Item_Due ' } ); my $preferences = C4::Members::Messaging::GetMessagingPreferences( { categorycode => 'LIBRARY', - message_name => 'DUE' } ); + message_name => 'Item_Due ' } ); returns: a hashref of messaging preferences for a borrower or patron category for a particlar message_name Requires either a borrowernumber or a categorycode key, but not both. +message_name argument is a message attribute name. + =cut sub GetMessagingPreferences { -- 2.39.5