Parent entity validation fails => entity reference entity is being regardles saved

Created on 16 October 2015, about 9 years ago
Updated 18 October 2024, about 1 month ago

Curently the entity is being saved in the field widget's function InlineEntityFormMultiple::extractFormValues which is being called during the parent entity is being newly built by ContentEntityForm::buildEntity, which is being called during validation and submit.

The problem is that if the validation fails, the referenced entity will be regardless saved.

So saving the entity should not occur during parent entity form validation, but during submit only.

🐛 Bug report
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

🇩🇪Germany hchonov 🇪🇺🇩🇪🇧🇬

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024