Modify

Opened 15 years ago

Closed 10 years 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

Description

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

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

Attachments (1)

6365.patch (767 bytes) - added by Sergio Talens-Oliag 14 years ago.
The fix as a patch

Download all attachments as: .zip

Change History (6)

Changed 14 years ago by Sergio Talens-Oliag

Attachment: 6365.patch added

The fix as a patch

comment:1 Changed 14 years ago by Sergio Talens-Oliag

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 13 years ago by anonymous

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

comment:3 Changed 13 years ago by anonymous

Cc: georgy.steshin@… added; anonymous removed
Trac Release: 0.110.12

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

comment:4 Changed 10 years ago by Cinc-th

Owner: changed from Ermal Memushaj to Cinc-th
Status: newassigned

comment:5 Changed 10 years ago by Cinc-th

Resolution: fixed
Status: assignedclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Cinc-th.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.