Modify

Opened 9 years ago

Closed 9 years ago

#3424 closed defect (fixed)

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

Reported by: Eleonore Owned by: Shun-ichi Goto
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 9 years ago by Shun-ichi Goto

Resolution: fixed
Status: newclosed

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'

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Shun-ichi Goto.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.