Opened 6 years ago

Closed 6 years ago

#3390 closed defect (fixed)

summary option cause error with direct numbered tickets

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


The 'summary' option works fine with report numbers like [[TicketBox({1},summary)]]
but fail with direct numbers like [[TicketBox(1,2,summary)]]
It displays following error message:

Error: Macro TicketBox(1,2,inline,summary) failed

And logged as:

2008-07-15 14:09:55,431 Trac[formatter] ERROR: Macro TicketBox(1,2,inline,summary) failed
Traceback (most recent call last):
  File "c:\develop\trac\i18n-original\trac\wiki\", line 468, in _macro_formatter
    return macro.process(args, in_paragraph=True)
  File "c:\develop\trac\i18n-original\trac\wiki\", line 179, in process
    text = self.processor(text)
  File "c:\develop\trac\i18n-original\trac\wiki\", line 166, in _macro_processor
  File "c:\trac\projects\test\plugins\", line 177, in expand_macro
    return execute(formatter, args)
  File "c:\trac\projects\test\plugins\", line 142, in execute
    html = string.join([wiki_to_oneliner("%s (#%d)" % (summaries[n],n),
KeyError: 1

Attachments (0)

Change History (1)

comment:1 Changed 6 years ago by gotoh

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

(In [4052]) Support using of 'summary' option with direct numbered tickets.
Close #3390.

Add Comment

Modify Ticket

as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from gotoh. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.