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.

Command icon 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

oleksandr yushchenko created an issue. See original summary.

oleksandr yushchenko’s picture

Assigned: oleksandr yushchenko » Unassigned
Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.