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

Change ContentService::deleteTranslation() to remove versions that only exist in that language

    XMLWordPrintable

Details

    Description

      When deleting a language from all versions using ContentService::deleteTranslation($contentInfo, 'locale'), if an archived version only has the language being deleted, then an error is thrown by the public API.

      In the REST implementation of that method, based on users requests, code is added to the REST API to delete the version if it only has that language. This should be the public API's job.

      I don't see a use-case where we'd want that exception. The method is designed to remove that translation in all versions. To delete one translation without affecting the archives, deleteTranslationFromDraft() should be used. Archived versions are anyway removed after a while.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bertrand.dunogier@ibexa.co Bertrand Dunogier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: