Action trigger validators problems for Long Overdue items
Bug #1692116 reported by
Michele Morgan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Medium
|
Unassigned | ||
3.0 |
Fix Released
|
Medium
|
Unassigned |
Bug Description
For systems using the Mark Item Long Overdue action trigger, the current validators allow subsequent overdue notices to be sent to a patron whose long overdue item has been paid for. Once a long overdue item is paid, the transaction is closed and the patron should no longer receive overdue notices.
None of the current validators consult action.
Changed in evergreen: | |
assignee: | nobody → Michele Morgan (mmorgan) |
tags: | added: notifications pullrequest |
Changed in evergreen: | |
milestone: | none → 3.0.9 |
Changed in evergreen: | |
milestone: | 3.0.9 → 3.1.4 |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Working branch is at:
http:// git.evergreen- ils.org/ ?p=working/ Evergreen. git;a=shortlog; h=refs/ heads/user/ mmorgan/ lp1692116_ a/t_validator_ fix_for_ paid_long_ overdue_ items
The patch changes the CircIsOpen validator to check that there is no xact_finish date in the action.circulation row.
Testing plan:
1. Identify or create a Long Overdue item. circulation. xact_finish is no longer null
2. Identify or create a trigger to send a notification for the Long Overdue item with the following parameters:
- Hook: checkout.due
- Validator: CircIsOpen
- Event Repeatability Delay: Short enough to run again for the same target
3. Run the action trigger to confirm that a notification is created for the Long Overdue item
4. Pay the bill for the Long Overdue item
5. Confirm that the action.
6. Run the action trigger again
7. Observe that a notification is generated for the item despite the transaction being finished
8. Apply the patch
9. Run the action trigger again
10. Observe that the event created is now invalid