Opened 7 years ago

Closed 21 months ago

#6365 closed defect (fixed)

I changed the type of the ticket (so that its status became incorrect) and got the error at line 200.

Reported by: arsenische@… Owned by: Cinc-th
Priority: normal Component: MultipleWorkflowPlugin
Severity: normal Keywords:
Cc: georgy.steshin@… Trac Release: 0.12


I replaced line 200 with this piece of code and it fixed it:

	if self.actions.has_key(action):
          this_action = self.actions[action]
          this_action = {
                'default': 0,
                'name': 'reset',
                'newstate': 'new',
                'oldstates': [],
                'operations': ['reset_workflow'],
                'permissions': []

Attachments (1)

6365.patch (767 bytes) - added by sto 6 years ago.
The fix as a patch

Download all attachments as: .zip

Change History (6)

Changed 6 years ago by sto

The fix as a patch

comment:1 Changed 6 years ago by sto

I've found the same problem and the proposed code worked; I've attached the fix as a patch just in case it makes it easier to apply it.

comment:2 Changed 5 years ago by anonymous

Doesn't work for me. Line 299 KeyError: u'_reset'

comment:3 Changed 5 years ago by anonymous

  • Cc georgy.steshin@… added; anonymous removed
  • Trac Release changed from 0.11 to 0.12

The reset from wrong state still doesn't work for me

comment:4 Changed 21 months ago by Cinc-th

  • Owner changed from ermal to Cinc-th
  • Status changed from new to assigned

comment:5 Changed 21 months ago by Cinc-th

  • Resolution set to fixed
  • Status changed from assigned to closed

[14566]: Offer a ticket action to reset the status when ticket has an invalid status after a type change.

An invalid status is any status which is not defined in the active workflow.

Add Comment

Modify Ticket

as closed The owner will remain Cinc-th.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.