Modify

Opened 3 years ago

Closed 3 years ago

#9034 closed defect (fixed)

Statuses loaded multiple times

Reported by: fzemanec@… Owned by: jun66j5
Priority: normal Component: TracWorkflowAdminPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description

When I created my workflow, saved and reloaded workflow again I got:

There was an internal error.
Status column 9: Status name is duplicated. The name must be unique.
Status column 10: Status name is duplicated. The name must be unique.
Status column 11: Status name is duplicated. The name must be unique.
Status column 12: Status name is duplicated. The name must be unique.
Status column 13: Status name is duplicated. The name must be unique.
Status column 14: Status name is duplicated. The name must be unique.
Status column 15: Status name is duplicated. The name must be unique.
Status column 16: Status name is duplicated. The name must be unique.
Status column 17: Status name is duplicated. The name must be unique.
Status column 18: Status name is duplicated. The name must be unique.
Status column 19: Status name is duplicated. The name must be unique.

I checked the ini file and the workflow is saved correctly:

[ticket-workflow]
accept = new,assigned,accepted,paused,reviewing,awaitinginfo,reopened -> accepted
accept.default = 998
accept.name = Accept
accept.operations = set_owner_to_self
accept.permissions = TICKET_MODIFY
assign = new -> assigned
assign.default = 999
assign.name = Assign
assign.operations = set_owner
assign.permissions = TICKET_MODIFY
leave = new,assigned,accepted,paused,reviewing,awaitinginfo,reopened,closed -> *
leave.default = 1000
leave.name = Leave
leave.operations = leave_status
needinfo = new,assigned,accepted,paused,reviewing,reopened -> awaitinginfo
needinfo.default = 993
needinfo.name = Need info
needinfo.operations = leave_status
pause = new,assigned,accepted,awaitinginfo,reopened -> paused
pause.default = 994
pause.name = Pause
pause.operations = leave_status
pause.permissions = TICKET_MODIFY
reassign = assigned,accepted,paused,reviewing,awaitinginfo,reopened -> assigned
reassign.default = 997
reassign.name = Reassign
reassign.operations = set_owner
reassign.permissions = TICKET_MODIFY
reopen = closed -> reopened
reopen.default = 996
reopen.name = Reopen
reopen.operations = del_resolution
reopen.permissions = TICKET_CREATE
resolve = assigned,accepted,paused,reviewing,awaitinginfo -> closed
resolve.default = 992
resolve.name = Resolve
resolve.operations = set_resolution
resolve.permissions = TICKET_MODIFY
review = assigned,accepted,reviewing,awaitinginfo -> reviewing
review.default = 995
review.name = Review
review.operations = set_owner
review.permissions = TICKET_MODIFY

I am useing TracWorkflowAdmin 0.12.0.1 with Trac 0.12 Python 2.7. Let me know if you need more info.

Attachments (0)

Change History (3)

comment:1 Changed 3 years ago by jun66j5

(In [10510]) Fixed incorrectly duplicated statuses with multiple leave_status (refs #9034).

comment:2 Changed 3 years ago by jun66j5

  • Summary changed from Slatuses loaded multiple times to Statuses loaded multiple times

Thanks for your reporting. That's so bad.
I just fix in r10510. Please try the latest.

comment:3 Changed 3 years ago by anonymous

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

Thanks for the fast fix. Everything works fine now. I like this plugin very much.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.