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

Cannot edit content which falls under more than two workflows

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • 3.0.0
    • 3.0.0-beta3
    • Workflow
    • None

    Description

      When a Content item would fall under more than two workflows, entering the Edit mode results in anĀ `An exception has been thrown during the rendering of a template ("Cannot reorder children, order does not contain all children.")` error.

      Steps to reproduce:

      1. In ezplatform.yaml add the following workflow config:

                  workflows:
                      custom_workflow:
                          name: Custom Workflow
                          stages:
                              draft:
                                  label: Draft
                              proofread:
                                  label: Proofread
                              done:
                                  label: Done
                                  last_stage: true
                          initial_stage: draft
                          transitions:
                              to_proofread:
                                  from: draft
                                  to: proofread
                                  label: To proofreading
                              done:
                                  from: proofread
                                  to: done
                                  label: Done
                      custom_workflow2:
                          name: Custom Workflow 2
                          stages:
                              draft:
                                  label: Draft 2
                              proofread:
                                  label: Proofread 2
                              done:
                                  label: Done 2
                                  last_stage: true
                          initial_stage: draft
                          transitions:
                              to_proofread:
                                  from: draft
                                  to: proofread
                                  label: To proofreading 2
                              done:
                                  from: proofread
                                  to: done
                                  label: Done 2
                      custom_workflow3:
                          name: Custom Workflow 3
                          stages:
                              draft:
                                  label: Draft 3
                              proofread:
                                  label: Proofread 3
                              done:
                                  label: Done 3
                                  last_stage: true
                          initial_stage: draft
                          transitions:
                              to_proofread:
                                  from: draft
                                  to: proofread
                                  label: To proofreading 3
                              done:
                                  from: proofread
                                  to: done
                                  label: Done 3
      

      2. Start creating a new Folder Content item

      Result: the exception shown in the attachment is thrown.

      Note: When you comment out one of the workflows, editing can proceed normally

      Attachments

        Activity

          People

            Unassigned Unassigned
            dominika.kurek-obsolete@ibexa.co Dominika Kurek
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: