Change record status: 
Project: 
Introduced in branch: 
10.2.x
Introduced in version: 
10.2.0
Description: 

When entity validation is set as required on an entity, but it is saved without validation, Drupal will now throw a LogicException instead of raising an assertion error. This could theoretically cause exceptions to surface on production sites for code which previously would only have generated an error during development. To remove the error, validate the entity prior to saving it.

See https://www.drupal.org/docs/drupal-apis/entity-api/entity-validation-api... for more details on entity validation.

Impacts: 
Module developers

Comments

andypost’s picture

The behavior changed in 10.1.0 but there was no change record, this change is about reverting it to pre 10.1

https://git.drupalcode.org/project/drupal/-/commit/e434d61d4cc1fec047a89...