Modify ↓
Opened 15 years ago
Closed 15 years ago
#8939 closed defect (fixed)
TicketQuery macro with group parameter occurs an error
Reported by: | Owned by: | Remy Blank | |
---|---|---|---|
Priority: | normal | Milestone: | 0.12 |
Component: | ticket system | Version: | 0.12dev |
Severity: | normal | Keywords: | patch |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
TicketQuery
macro with group parameter in trac-0.12 r9004 occurs an error.
Error: Macro TicketQuery(milestone=0.12,group=owner) failed list indices must be integers
The problem is fixed by this ad-hoc patch in my environment….
-
trac/ticket/query.py
1300 1300 "%(query)s", groupvalue=v, groupname=query.group, 1301 1301 query=q.to_string()) 1302 1302 # produce the href for the query corresponding to the group 1303 q.constraints[ str(query.group)] = v1303 q.constraints[0][str(query.group)] = v 1304 1304 q.order = order 1305 1305 href = q.get_href(formatter.context) 1306 1306 groups.append((v, [t for t in g], href, title))
Attachments (0)
Change History (2)
comment:1 by , 15 years ago
Owner: | set to |
---|
comment:2 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed in [9031], but also take OR clauses into account, so I set the group constraint on all clauses.
Note:
See TracTickets
for help on using tickets.
It looks like we missed something while implementing the OR clauses. Thanks for the patch!