Problem/Motivation
Get WSOD when module used together with Content Moderation:
Drupal\Core\Entity\EntityStorageException: Default revision can not be deleted in Drupal\Core\Entity\ContentEntityStorageBase->deleteRevision() (line 817 of /var/www/html/drupal/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php).
Steps to reproduce
1. Set revision limit to 3.
2. Create published node.
3. Edit node and Save in draft mode so first revision stays "default".
4. Repeat step 2 until revision limit is reached.
Proposed resolution
When purging node revisions we also need to check if revision is not default, now we check only if revision is not current revision.
Issue fork node_revision_limit-3575622
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
oleksandr yushchenko commented