I have a content type with a required date field. and i create a node edit pane with panels. after create a node and go to pane edit and click on save i get this error:

A valid date is required for date.

To reproduce the error:
1- add a date filed to article and required it
2- create a panels with this URL: node/%node/myedit
3- select ode edit form: node ID in arguments
4- in content section select add content (gear icon) and click on form and select a body (node:body)
5- like the previous level and select node form buttons.
6- create a article (node/add/article) and fill date field.
7- go to myedit tab on node view
8- change body and click on save.

Comments

Temoor’s picture

This issue can be reproduced with any field marked as required, not only Date field.
Problem rises from ctools entity form plugin, that leaves form in original untouched, hiding all fields except those who are added from panel. Therefore all fields would go through validation.

arefen’s picture

Thanks Temoor But This problem only for date filed. for test you can add text field on article and mark it as required and mark date field as optional and you see panels work properly.
one other point if you change required date field widget to select list you get this error:

A valid date is required for [mydatefieldname].
[mydatefieldname] field is required.

and if you change date field widget to popup, error message changed to:

A valid date is required for date.