https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25472 --- Comment #2 from babar junaid <babarjunaid1122@gmail.com> --- Created attachment 212812 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212812&action=edit Bug 25472: Restrict on an overdue trigger that has no letter Bug 25472: Restrict on an overdue trigger that has no letter overdue_notices.pl skipped a trigger with no letter code before looking at its Restrict flag ("Trigger N skipped, No letter code found"), so a trigger set up to restrict without sending a notice never restricted anybody. A trigger with Restrict and no letter now restricts the patron and sends nothing. A trigger with neither is skipped as before. Test plan: 1. Make a patron category with overdue notices required and a patron in it with an item 5 days overdue. 2. In Overdue notice/status triggers for that library and category set trigger 1: delay 1, no notice, Restrict ticked. 3. perl misc/cronjobs/overdue_notices.pl -v -n --library <code> It prints "Trigger 1 skipped, No letter code found" and the patron has no restriction. 4. Apply the patch and run it again: it prints "Trigger 1 has no letter code: restricting without a notice" and "debarring ...", and the patron has an OVERDUES restriction. 5. Remove the restriction, set the trigger's notice to ODUE and run it again: "Using letter code 'ODUE'" and the restriction, as before. Sponsored-by: Koha Solutions -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.