Modify ↓
Opened 16 years ago
Closed 11 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: | 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)
Change History (6)
Changed 15 years ago by
| Attachment: | 6365.patch added |
|---|
comment:1 Changed 15 years ago by
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:3 Changed 14 years ago by
| Cc: | georgy.steshin@… added; anonymous removed |
|---|---|
| Trac Release: | 0.11 → 0.12 |
The reset from wrong state still doesn't work for me
comment:4 Changed 11 years ago by
| Owner: | changed from Ermal Memushaj to Cinc-th |
|---|---|
| Status: | new → assigned |
comment:5 Changed 11 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | assigned → 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.
Note: See
TracTickets for help on using
tickets.



The fix as a patch