From 0a0ff7c5ceab836631be060a4571681ff40e275c 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 --- 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 5e51a39a0e..97e72c5e3e 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