I tried this module, but got this error when trying to save a form:
Drupal\Core\Entity\EntityStorageException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'field_daterange_end_value' cannot be null: INSERT INTO {node__field_daterange} (entity_id, revision_id, bundle, delta, langcode, field_daterange_value, field_daterange_end_value) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6); Array ( [:db_insert_placeholder_0] => 13397 [:db_insert_placeholder_1] => 14236 [:db_insert_placeholder_2] => brev [:db_insert_placeholder_3] => 0 [:db_insert_placeholder_4] => nb [:db_insert_placeholder_5] => 1888-08-12 [:db_insert_placeholder_6] => ) i Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (linje 829 i /srv/bindings/a4c66fcfe5c642ce8223c1162b0190b6/code/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
Comments
Comment #2
birk commentedFields created before the module is activated will cause this error.
I'll fix the install part, so this works on older fields as well, and release the update later on today.
Comment #4
birk commentedThere's no update hook for this fix, so you need to uninstall and reinstall the module (after it's been updated).
Comment #5
birk commentedComment #6
matsbla commentedI tested this and can confirm it is now working, thanks for rapid fix!
Comment #7
birk commentedThank you for testing, closing the issue.