https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28308
Bug ID: 28308
Summary: Select 'Days in advance' = 0 for Advance notice
effectively disables PREDUE notices
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: Notices
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
Looking at the code below, it seems that on the day an item is due we will only
send the DUE notices, predues will not be sent
In the advance_notices.pl cron:
276 if ( 0 == $upcoming->{'days_until_due'} ) {
277 # This item is due today. Send an 'item due' message.
...
323 } else {
324 $borrower_preferences =
C4::Members::Messaging::GetMessagingPreferences( { borrowernumber =>
$upcoming->{'borrowernumber'},
325
message_name => 'advance_notice' } );
326 next UPCOMINGITEM unless $borrower_preferences && exists
$borrower_preferences->{'days_in_advance'};
327 next UPCOMINGITEM unless $borrower_preferences->{'days_in_advance'}
== $upcoming->{'days_until_due'};
In this case, allowing the user to choose '0' is effectively disabling the
notice.
I think we need to remove 0 as an option, and uncheck all transports for
patrons who have '0' set for days in advance
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/