Modify

Opened 4 years ago

Last modified 4 years ago

#8719 assigned defect

Status of action radio button is set to wrong option after refreshing an existing ticket

Reported by: development@… Owned by: hasienda
Priority: normal Component: CcSelectorPlugin
Severity: normal Keywords: side-effect javascript
Cc: Trac Release: 0.12

Description

When I view an existing ticket and hit the refresh button in my browser, the action radio button is set to 'resolve as fixed' instead of the first 'leave as accepted' status, see the attached screenshot. I use the custom workflow as shown below, but the behavior is exactly the same in a completely new default Trac 0.12 environment.

[cc_selector]
show_fullname = false
username_blacklist = admin, development, extern

[ticket-workflow]
accept = new,assigned,accepted,reopened,input needed -> accepted
accept.operations = set_owner_to_self
accept.permissions = TICKET_MODIFY
leave = * -> *
leave.default = 1
leave.operations = leave_status
need input = new,assigned,accepted,reopened,input needed,closed -> input needed
need input.operations = set_owner
need input.permissions = TICKET_MODIFY
reassign = new,assigned,accepted,reopened,input needed -> assigned
reassign.operations = set_owner
reassign.permissions = TICKET_MODIFY
reopen = accepted,closed,input needed -> reopened
reopen.operations = del_resolution
reopen.permissions = TICKET_CREATE
resolve = new,assigned,accepted,reopened,input needed,closed -> closed
resolve.operations = set_resolution
resolve.permissions = TICKET_MODIFY

Attachments (1)

wrong_action.png (22.2 KB) - added by development@… 4 years ago.
First option should be preselected, but second one is…

Download all attachments as: .zip

Change History (2)

Changed 4 years ago by development@…

First option should be preselected, but second one is...

comment:1 Changed 4 years ago by hasienda

  • Keywords side-effect javascript added
  • Status changed from new to assigned

Confirmed.

I think I've seen mysterious ticket action changes happen before, but I've never drawn a connection to this plugin. At first sight the python part looks not at all suspicious. My best guess it, that it is a side-effect of JavaScript execution. But what exactly is going one there, is still unclear to me.

Add Comment

Modify Ticket

Action
as assigned The owner will remain hasienda.
Author


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

 
Note: See TracTickets for help on using tickets.