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