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

matsbla created an issue. See original summary.

birk’s picture

Fields 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.

  • Birk committed 3a52e4a on 8.x-1.x
    Issue #2969070: daterange_end_value cannot be null
    
birk’s picture

There's no update hook for this fix, so you need to uninstall and reinstall the module (after it's been updated).

birk’s picture

Assigned: Unassigned » birk
Status: Active » Needs review
matsbla’s picture

Status: Needs review » Fixed

I tested this and can confirm it is now working, thanks for rapid fix!

birk’s picture

Status: Fixed » Closed (fixed)

Thank you for testing, closing the issue.