Modify

Opened 14 years ago

Last modified 12 months ago

#8719 assigned defect

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

Reported by: devscan Owned by: Dirk Stöcker
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 devscan 14 years ago.
First option should be preselected, but second one is…

Download all attachments as: .zip

Change History (4)

Changed 14 years ago by devscan

Attachment: wrong_action.png added

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

comment:1 Changed 14 years ago by Steffen Hoffmann

Keywords: side-effect javascript added
Status: newassigned

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.

comment:2 Changed 8 years ago by Ryan J Ollos

Owner: Steffen Hoffmann deleted
Status: assignednew

comment:3 Changed 12 months ago by Ryan J Ollos

Owner: set to Dirk Stöcker
Status: newassigned

Modify Ticket

Change Properties
Set your email in Preferences
Action
as assigned The owner will remain Dirk Stöcker.

Add Comment


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

 
Note: See TracTickets for help on using tickets.