Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Steps to reproduce the bug:
- Create a required date field with a default start date and a required but empty by default end date
- Add this field to a node type and turn it into a conditional field triggered by another field
- Attempt to create a node without triggering the date field
=> Save should crash with error SQLSTATE[22007]: Invalid datetime format.
This does not happen if you trigger the date field, empty its start date, untrigger the field, then save.
Comments
Comment #2
anrikun CreditAttribution: anrikun commented