Details
-
Bug
-
Resolution: Fixed
-
High
-
4.5.1
-
None
Description
It's not possible to create Content Items under a Content Item that doesn't have the Version "1".
Steps to reproduce:
- Login as admin
- Edit and publish (without any changes) the Ibexa Digital Experience Platform item 6 times
- Verify in the "Versions" tab that the Version 1 is no longer available
- Start creating a new Landing Page under this Content Item
Expected:
Content Item is created, preview is correctly rendered
Actual:
Preview loads with an error:
Could not find 'VersionInfo' with identifier 'array ( 'contentId' => 52, 'versionNo' => 1, )'
Note:
By default only 5 latest versions are kept:
https://doc.ibexa.co/en/latest/content_management/content_model/#content-versions
The number of preserved archived versions is set in ibexa.repositories.default.options.default_version_archive_limit. By default it is set to 5.