form autofill plugin gives strange date if field is empty

nettemor

Member
Hi,
When creating a new related form, data are fetched into the form using the autofill plugin. One of the fields that are filled is a date field. It is set as a date field in both the related and the "parent" form. If the date is set in the parent form, the date in the related form becomes fine. But if there is no date in the parent form, the date always become 01-01-1970 in the related form. But it should be blank, just like in the parent form.
Checking the database, there is a value set as 0000-00-00 00:00:00

How can i avoid this? I want the related date field show blank, just as in the parent form.
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top