[Bug 25472] New: Invalid overdue action trigger should cause a warning or error instead of being ignored
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25472 Bug ID: 25472 Summary: Invalid overdue action trigger should cause a warning or error instead of being ignored Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Notices Assignee: koha-bugs@lists.koha-community.org Reporter: victor@tuxayo.net QA Contact: testopia@bugs.koha-community.org == Invalidity case 1 == misc/cronjobs/overdue_notices.pl just silently does nothing when "Restrict" ticked and nothing else in the same trigger. A notification must be also enabled for the restriction to happen. == Invalidity case 2 == If "Letter" is set to "No notice" , then when "Email" is ticked, it's also silently ignored. The user should know about the trigger invalidity in the above two case to cause less guesswork when restriction aren't done or notifications not sent. Could be in the UI, could be the cron job that errors. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25472 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=25049 --- Comment #1 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- I think this is somewhat similar to the issues reported on bug 25049 - more validation is needed. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
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.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25472 babar junaid <babarjunaid1122@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |babarjunaid1122@gmail.com |ity.org | Status|NEW |Needs Signoff -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25472 --- Comment #3 from babar junaid <babarjunaid1122@gmail.com> --- This patch fixes case 1: a trigger with "Restrict" ticked and no letter now restricts the patron (the notice is skipped, the restriction is not). With --verbose it says "Trigger N has no letter code: restricting without a notice". A trigger with neither a letter nor Restrict is still skipped as before. Case 2 (Email ticked with "No notice") is not changed: with no letter there is nothing to send. Tested on main (186bbe7): a patron with an item 5 days overdue, trigger 1 = delay 1, no letter, Restrict. Without the patch: "Trigger 1 skipped, No letter code found", no restriction. With the patch: an OVERDUES restriction is added. With a letter (ODUE) and Restrict, the notice and the restriction both happen as before. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org