Edgewall Software
Modify

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

apply_action_side_effects.patch (847 bytes) - added by kirean@… 4 years ago.

Download all attachments as: .zip

Change History

Changed 4 years ago by kirean@…

comment:1 Changed 4 years ago by kirean@…

Creds to osimons.

Maybe this patch to the sample could do the trick instead?

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].

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from jonas. Next status will be 'closed'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.