Modify ↓
Opened 16 years ago
Closed 16 years ago
#3390 closed defect (fixed)
summary option cause error with direct numbered tickets
Reported by: | Shun-ichi Goto | Owned by: | Shun-ichi Goto |
---|---|---|---|
Priority: | normal | Component: | TicketBoxMacro |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
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\formatter.py", line 468, in _macro_formatter return macro.process(args, in_paragraph=True) File "c:\develop\trac\i18n-original\trac\wiki\formatter.py", line 179, in process text = self.processor(text) File "c:\develop\trac\i18n-original\trac\wiki\formatter.py", line 166, in _macro_processor text) File "c:\trac\projects\test\plugins\TicketBox.py", line 177, in expand_macro return execute(formatter, args) File "c:\trac\projects\test\plugins\TicketBox.py", line 142, in execute html = string.join([wiki_to_oneliner("%s (#%d)" % (summaries[n],n), KeyError: 1
Attachments (0)
Note: See
TracTickets for help on using
tickets.
(In [4052]) Support using of 'summary' option with direct numbered tickets. Close #3390.