Uploaded image for project: 'eZ Platform Enterprise Edition'
  1. eZ Platform Enterprise Edition
  2. EZEE-3521

Sending translation to workflow fails with an exception

    XMLWordPrintable

Details

    Description

      Leaving the workflow's matchers  empty will allow sending translation to the Workflow, but it will then fail with an Exception:

      Property 'contentDraft' not found on class 'EzSystems\EzPlatformAdminUi\Form\Data\ContentTranslationData' 

      Steps to reproduce
      1. Clean installation of Ibexa DXP 3.2/3.3
      2. Create a new workflow:

       system:
          default:
              workflows:
                  translation_workflow:
                      name: Translation Workflow
                      matchers: ~
                      stages:
                          untranslated:
                              label: Untranslated
                              color: '#f18a10'
                          translation:
                              label: Translation
                              color: '#f15a10'
                          proofread:
                              label: Proofread
                              color: '#5a10f1'
                          done:
                              label: Done
                              color: '#301203'
                              last_stage: true
                      initial_stage: untranslated
                      transitions:
                          to_translation:
                              from: untranslated
                              to: translation
                              label: To translation
                              color: '#8888ca'
                              icon: '/bundles/ezplatformadminui/img/ez-icons.svg#comment'
                              reviewers:
                                  required: true
                          to_proofread:
                              from: translation
                              to: proofread
                              label: To proofreading
                              color: '#8888ba'
                              icon: '/bundles/ezplatformadminui/img/ez-icons.svg#comment'
                              reviewers:
                                  required: true
                          back_to_translation:
                              reverse: to_proofread
                              label: Back to translation
                              color: '#cb8888'
                              icon: '/bundles/ezplatformadminui/img/ez-icons.svg#comment'
                          done:
                              from: proofread
                              to: done
                              label: Done
                              color: '#88ad88'
                              icon: '/bundles/ezplatformadminui/img/ez-icons.svg#comment'

      3. Log in to the BackOffice as an admin User and add a new Language: "French" fre-FR.
      4. Create and Publish a Folder Test Folder.
      5. When viewing Test Folder go to the "Translations" tab and create a new French translation based on the English language.
      6. Send it to the Translation phase of the Translation workflow by click on the To translation button.

      Result //edit - fixed in the newest version
      An exception will be thrown:

      Property 'contentDraft' not found on class 'EzSystems\EzPlatformAdminUi\Form\Data\ContentTranslationData' 

      Expected result
      Translation sent to the Translation phase normally.

      Note
      If the translation is published normally, and then Editor sends it to the Translation workflow after editing, the action will complete normally, unless Content's Content Type does not have any non-translatable fields. Otherwise, it will fail with Exception:

      eZ\Publish\Core\Base\Exceptions\ContentValidationException: You cannot set a value for the non-translatable Field definition 'name' in language 'fre-FR' 

      Attachments

        Activity

          People

            Unassigned Unassigned
            mateusz.bieniek@ibexa.co Mateusz Bieniek
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: