Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-28315

Cannot delete draft in case of nonpublished content

    XMLWordPrintable

Details

    Description

      In Content Edit mode there is a BadStateException being thrown in case of nonpublished content when trying to remove the only existing draft. This content cannot be removed using ContentService::deleteVersion but with ContentService::deleteContent instead.

      Another issue which is related to this is the redirection happening after deleting the draft - you can't redirect to the content after removing it, it should redirect to parent location instead. It isn't possible to resolve parent location from nonpublished content using LocationService, an improvement to the kernel is needed.

      Attachments

        Activity

          People

            Unassigned Unassigned
            maciej.kobus@ibexa.co Maciej Kobus
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: