Ticket #6048 (closed defect: fixed)
Opened 4 years ago
Last modified 4 years ago
apply_action_side_effects not called unless changes made to a ticket.
| Reported by: | kirean@… | Owned by: | jonas |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | ticket system | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | |||
| Release Notes: | |||
| API Changes: | |||
Description
Take the example: sample-plugins/workflow/DeleteTicket.py
It doesn't call apply_action_side_effects unless a change is made to the ticket. And when you want to delete a ticket, as in the example, it doesn't make sense to have to change the ticket first.
I believe trac/ticket/web_ui.py needs to be modified to always call apply_action_side_effects, regardless of if any real changes have been made to the ticket.
Attachments
Change History
Changed 4 years ago by kirean@…
- Attachment apply_action_side_effects.patch added
comment:1 Changed 4 years ago by kirean@…
comment:2 Changed 4 years ago by ecarter
- Resolution set to fixed
- Status changed from new to closed
It is supposed to call the side effects even if there are no changes to the ticket. Fixed in [6021].



Creds to osimons.
Maybe this patch to the sample could do the trick instead?