Ticket #3968 (closed defect: fixed)
TicketQueryMacro should not enforce order-id
| Reported by: | ilias@… | Owned by: | cboos |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.11 |
| Component: | ticket system | Version: | devel |
| Severity: | normal | Keywords: | |
| Cc: |
Description
The TicketQueryMacro uses default-order "id"
source:trunk/trac/ticket/query.py#3882#L720
kwargs.setdefault('order', 'id')
This line does not just set an default. It overrides an existent query parameter "&order=<field>".
It would be of benefit to remove the line completely, thus the original behaviour of the ticket query becomes available within the wiki (currently: order=priority).
This would lead to a more consistent design.
You can test the behaviour by adding this code to a wiki page:
testing order=type '''keyword-parameter''' [[TicketQuery(status=assigned|new|reopened, order=type, format=table )]] '''query-parameter''' [[TicketQuery(status=assigned|new|reopened&order=type, format=table)]]
context: http://dev.lazaridis.com/base/wiki/PlanTicketQueryMacro
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


