Edgewall Software

Ticket #7232 (closed defect: fixed)

Opened 8 months ago

Last modified 8 months ago

Workflow, action title disabled (grayed out)

Reported by: kirean@… Owned by: ecarter
Priority: normal Milestone:
Component: ticket system Version: 0.11b2
Severity: normal Keywords: workflow
Cc:

Description

I was working on some custom workflow actions when one of my action titles ended up gray.

I've attached an example on how to recreate the issue.

Note: no entry should be made in [ticket-workflow] section for this plugin example. Just remember to add the TestveActionController? to the available workflows.

By changing the id to something else the the action name the problem is solved.

control.append(tag([' ', tag.input(type='text', id='testing_%s' % ticket['status'],

Attachments

gray_title.txt (3.2 KB) - added by kirean@… 8 months ago.

Change History

Changed 8 months ago by kirean@…

Changed 8 months ago by ecarter

  • status changed from new to assigned

The name of the action is used as the id for the radio button. Any id used within the control needs to be made unique, such as by using the action value as part of any id.

For example:

    def render_ticket_action_control(self, req, ticket, action):
        control = tag([' ', tag.input(type='text', id=action+'_testing',
                                           name='testing', value=('Testing'))])
...

Looks like I'd better document this.

Changed 8 months ago by ecarter

Further, this means that the names of actions have to be unique as ids in the ticket.html... and that is less than desirable. So, I'm changing it to prefix each of those ids with action_. So the ids used as part of a ticket action control should look like "action_%s_whatever" % action.

Changed 8 months ago by ecarter

  • status changed from assigned to closed
  • resolution set to fixed

Fixed. Also, documentation added to ITicketActionController.render_ticket_action_control().

Add/Change #7232 (Workflow, action title disabled (grayed out))

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from ecarter. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.