Modify

Opened 6 years ago

Closed 6 years ago

#3424 closed defect (fixed)

TicketBox error if the title of the column in the report is modified

Reported by: Eleonore Owned by: gotoh
Priority: normal Component: TicketBoxMacro
Severity: normal Keywords:
Cc: summary Trac Release: 0.11

Description

When I use a report, I modify the title of some columns in order to translate them in French. So the title of the column with the description of the ticket is not 'summary' but 'Titre'.
If I use the TicketBox macro with this report, I've got an error :
"
Error: Macro TicketBox('Mes tickets',1,summary,inline,nosort) failed
list.index(x): x not in list
"

And I only have to change the title of the column 'summary' back to normal to get the macro working.

So it would be great if the ticketBox macro could work even if we change the title of the column 'summary'. But if this is not possible, never mind, we can use Trac with english titles.

Thanks again for this great plugin, very useful to us.

Eleonore

Attachments (0)

Change History (1)

comment:1 Changed 6 years ago by gotoh

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

I've committed this feature as r4049 (for trac 0.11).
Try it:

[[TicketBox('Mes tickets',{1},summary=Titre,inline,nosort)]]

You can also change the default field name for summary by modifying
the line in TicketBox.py like:

default_summary_field = 'Titre'

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.