Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't save Table field with Date field in 3.1.6 #3748

Closed
engram-design opened this issue Jan 29, 2019 · 1 comment
Closed

Can't save Table field with Date field in 3.1.6 #3748

engram-design opened this issue Jan 29, 2019 · 1 comment

Comments

@engram-design
Copy link
Contributor

engram-design commented Jan 29, 2019

Description

Getting the error Argument 1 passed to craft\helpers\DateTimeHelper::_parseDateTime() must be of the type string, null given, called in /Users/joshcrawford/public_html/craft31/vendor/craftcms/cms/src/helpers/DateTimeHelper.php on line 149

Tracing the full error leads back to the ID for the newly created field.

This is pretty serious as it crashes the entire control panel - no page is accessible. Editing the settings for the Table field fixes this.

Field settings are (before editing):

{"addRowLabel":"Add a row","maxRows":"","minRows":"","columns":{"col1":{"heading":"Date","handle":"date","width":"","type":"date"}},"defaults":{"row1":{"col1":null}},"columnType":"text"}

Steps to reproduce

  1. Create a new table field, give it a name
  2. Add a date field, give it a name
  3. Ensure there's a single default row, but value is empty

Additional info

  • Craft version: 3.1.6
  • PHP version: 7.0.31
  • Database driver & version: MySQL 5.7.23
@brandonkelly
Copy link
Member

Whoops, thanks! Just released 3.1.6.1 with a fix for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants