Modify ↓
Opened 9 years ago
Closed 9 years ago
#12391 closed defect (worksforme)
Macro version doesn't match the non-macro version
Reported by: | Owned by: | Jun Omae | |
---|---|---|---|
Priority: | normal | Component: | TicketCalendarPlugin |
Severity: | normal | Keywords: | needinfo |
Cc: | Trac Release: |
Description
The non-macro version doesn't look for the due_date column correctly, so different results are given when using the url handler version than the macro version.
Patch to make them both go through the same code path is attached.
Attachments (1)
Change History (5)
Changed 9 years ago by
Attachment: | query_string.patch added |
---|
comment:1 Changed 9 years ago by
It doesn't seem the patch correctly works. Would you post how to reproduce and the details?
comment:2 Changed 9 years ago by
To reproduce:
- Have tickets with custom fields for due_date and/or start_date (using datefield plugin):
[ticket-custom] due_date = text due_date.date = true due_date.label = Due Date due_date.value = due_date.date_empty = true [datefield] format = ymd separator = /
- Go to the Ticket Calendar link and use a query that shows the tickets on their due or start dates.
- Click the Macro link next to the month selector and copy the macro text.
- Paste the macro text into a wiki page.
- View the wiki page with the macro.
Expected: It should show the same as the Ticket Calendar link,
Result without patch: it shows the tickets on their creation date.
comment:3 Changed 9 years ago by
Works for me. Please post the details step by step.
- Add
due_date
field to[ticket-custom]
- Create 2 tickets with
2015/06/08
and2015/06/09
indue_date
field.Id Due date ------------------------ #1 2015/06/09 #2 2015/06/08
- Visit
/ticketcalendar-box
and filter withdue_date=2015/06/08
. Current location is the following./ticketcalendar-box?due_date=2015%2F06%2F08&order=priority&_month=2015-06
- Only
#2
ticket is shown in ticket calendar. - Click the macro link. The following text is shown.
[[TicketCalendar(type=box,month=2015-06,query=due_date=2015/06/08,order=priority)]]
- Paste the macro in wiki page and save.
- Only
#2
ticket is shown in the wiki page.
comment:4 Changed 9 years ago by
Keywords: | needinfo added |
---|---|
Resolution: | → worksforme |
Status: | new → closed |
Closing as worksforme.
Note: See
TracTickets for help on using
tickets.
Patch