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

Creating a draft under workflow throws an exception if more non-workflow drafts already exist

    XMLWordPrintable

Details

    Description

      Steps to reproduce:
      1) Create a new ContentType
      2) Create an object of this ContentType, publish it
      3) Edit it and save a draft. Repeat this step 6 times to get 6 different drafts.
      4) Configure workflow for this ContentType
      5) Edit the content object and move it to another workflow stage

      Current result:
      You will get an exception like the following:

      Key "8" in object with ArrayAccess of class "Symfony\Component\Form\FormView" does not exist.
      

      Expected result:
      A new draft should be listed in the separated table under the `Versions` tab in AdminUI's content view.

      Note:
      This is somehow related to the version pagination. If there are less than 5 drafts the exception is not thrown and everything works fine.
      Apparently, there is no form field (checkbox) to handle a given version related to the workflow draft.
      The exception is thrown via Twig in /ezsystems/ezplatform-admin-ui/src/bundle/Resources/views/content/tab/versions/table.html.twig:45

      Attachments

        Activity

          People

            Unassigned Unassigned
            kamil.madejski@ibexa.co Kamil Madejski
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: