Ticket #3424 (closed defect: fixed)

Opened 2 months ago

Last modified 2 months ago

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

Reported by: Eleonore Assigned to: 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

Change History

07/21/08 12:38:05 changed by gotoh

  • status changed from new to closed.
  • resolution set to fixed.

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/Change #3424 (TicketBox error if the title of the column in the report is modified)




Change Properties
Action