Modify ↓
Opened 12 years ago
Closed 12 years ago
#10955 closed defect (duplicate)
Trac Custom Report DO NOT Wikify Custom Field
Reported by: | Owned by: | Christian Boos | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | report system | Version: | 1.0dev |
Severity: | normal | Keywords: | custom wiki verify |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description (last modified by )
When add one column of custom field like this: SELECT … s.parent AS parent …
custom field (parent)'s format is wiki, but the report renders without wiki style.
This issue not exists in query page, seems below code in query.py fix this:
wikify = set(f['name'] for f in self.fields if f['type'] == 'text' and f.get('format') == 'wiki') headers = [{ 'name': col, 'label': labels.get(col, _('Ticket')), 'wikify': col in wikify, 'href': self.get_href(context.href, order=col, desc=(col == self.order and not self.desc)) } for col in cols]
Attachments (0)
Change History (3)
comment:1 by , 12 years ago
Description: | modified (diff) |
---|
comment:2 by , 12 years ago
Keywords: | custom wiki verify added |
---|---|
Milestone: | → 1.0.2 |
Owner: | set to |
Status: | new → assigned |
comment:3 by , 12 years ago
Milestone: | 1.0.2 |
---|---|
Resolution: | → duplicate |
Status: | assigned → closed |
Wait, that's no proposed change, just a reminder how it works in query.py. No wonder the code looks good, it's ours ;-)
Actually a duplicate of #8088.
Note:
See TracTickets
for help on using tickets.
A proper patch would have been better, but the change looks good nevertheless…