- Issue created by @gugalamaciek
- Status changed to Needs review
over 1 year ago 6:29am 18 May 2023 - last update
over 1 year ago Composer error. Unable to continue. - last update
over 1 year ago Composer error. Unable to continue.
Consider scenario:
1. Create entity with "Title A". (default)
2. Create draft of the entity, change title to "Title B". (latest, but not default)
3. On bulk edit update title to "Title A" and save.
This generates strange results on revisions tab.
In scenario above, during bulk operation active entity is loaded (from point 2.). But on save, \Drupal\Core\Entity\EntityStorageBase::doPreSave() sets $entity->origin to default revision (so version from point 1.). This is not correct, $entity->origin should be set to draft revision (latest one) of the entity (from point 2.).
Needs review
2.0
Code