[Koha-bugs] [Bug 29704] Holds reminder emails should allow configuration for a specific number of days

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Dec 17 16:53:22 CET 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29704

--- Comment #1 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 128680
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=128680&action=edit
Bug 29704: Add a triggered option to holds_reminder.pl

This patch adds an option to only trigger notices matching the number of
days waiting specified

You will need to define HOLD_REMINDER notices for the specific branch of the
patron and ensure the patron has hold reminder notices in their messaging
preferences

TO test:
1 - Place a hold for a patron and check in to confirm
2 - Set the waiting date back a few days:
    update reserves set waitingdate = DATE_SUB(CURDATE(), INTERVAL 5 DAY);
3 - Run the cron and see that patron would be notified if running for 4 days
weaiting
    perl misc/cronjobs/holds/holds_reminder.pl -v --days 4
4 - Apply patch
5 - perl misc/cronjobs/holds/holds_reminder.pl -v --days 4 --triggered
6 - Note patron would not be notified
7 - perl misc/cronjobs/holds/holds_reminder.pl -v --days 5 --triggered
8 - Note patron is notified when days waiting matches exactly

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list