Modify

Opened 9 months ago

Closed 4 months ago

#14338 closed defect (fixed)

Unable to use custom field as start_date and due_date

Reported by: anonymous Owned by: Jun Omae
Priority: normal Component: TicketCalendarPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.2

Description (last modified by Ryan J Ollos)

Setting custom start_date and due_date doesn't work.

Setting example:

[ticketcalendar]
ticket.start_date = due_assign
ticket.start_date.format = %Y-%m-%d
ticket.due_date = due_close
ticket.due_date.format = %Y-%m-%d

After analyze source code, detect wrong parameters are passed to _to_date function in web_ui.py file.

125 def _to_date(self, d, format='%d/%m/%Y'):

After removing the self parameter, custom date started working.

Attachments (0)

Change History (2)

comment:1 Changed 9 months ago by Ryan J Ollos

Description: modified (diff)

comment:2 in reply to:  description Changed 4 months ago by Jun Omae

Resolution: fixed
Status: newclosed

After analyze source code, detect wrong parameters are passed to _to_date function in web_ui.py file.

125 def _to_date(self, d, format='%d/%m/%Y'):

After removing the self parameter, custom date started working.

You're right. That's my fault in [18553].

Fixed in [18653]. Thanks.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jun Omae.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.