"Trim Content Versions" scheduled job: "Maximum number of versions" isn't ignored when "Disable deletion of content versions" is selected.

Found in

EPiServer.CMS.UI 11.35.0

Fixed in

EPiServer.CMS.UI 11.35.3


Apr 15, 2021


Jun 08, 2021




Closed, Fixed and tested


Steps to reproduce:

  1. Go to admin view > Config tab> System Settings.
  2. Enable the "Disable deletion of content versions" check box.
  3. Click Save.
  4. Go to edit view to prepare testing data.
  5. Create a page having more than 20 "Previously published" versions.
  6. Go to admin view > Scheduled Jobs > Trim Content Versions.
  7. Start the job manually.

Expected result:
As mentioned in the user guide, selecting "Disable deletion of content versions" disables the automatic deletion of versions caused by the "Maximum number of versions" field. However, "Maximum number of versions" will be ignored if "Disable deletion of content versions" box is selected.
The expected result is that no version is deleted by "Trim Content Version" job.

Actual result:
All "Previously published" versions exceeding 20 are deleted.