Opened 11 years ago

Last modified 11 years ago

#10914 closed defect

Combine CustomFieldAdminPlugin, DateFieldPlugin and mine plugin for default values — at Initial Version

Reported by: Tomas Pelka Owned by: osimons
Priority: normal Component: DateFieldPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description

Hi my issue seems to be similar to 5838, but not sure about that.

Here is the thing, I created plugin [1] for setting default due date out from the milestone due date. It is based on CustomFieldAdminPlugin and it is applied on date field (DateFieldPlugin)

But getting always:

Warning: The ticket field 'userstart' is invalid: Field userstart does not seem to look like a date. The correct format is YYYY-MM-DD.

even if I think the date format is correct.

Interesting is that if I debug it a bit and try to print out a value of the filed when date is entered manually in correct format the value is empty, see line 38 in https://github.com/tompelka/TracDueDate/blob/master/duedate/__init__.py

log entry:

2013-03-07 06:34:15,413 Trac[__init__] DEBUG: **duedate plugin** due date - {'name': u'userfinish', 'format': 'plain', 'value': '', 'label': u'Due Date', 'type': u'text', 'order': 17}

Could somebody help? Not sure if my problem is an issue in CustomFieldAdminPlugin, DateFieldPlugin or my plugin.

Thanks Tom


[1] https://github.com/tompelka/TracDueDate

Change History (0)

Note: See TracTickets for help on using tickets.