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

Content Items in last Workflow Stage are displayed in Review Queue

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 3.1.0-rc1
    • 3.1.0-beta1, 3.0.5
    • Workflow

    Description

      Content Items that are in Workflow Stages marked as last_stage are displayed in Review Queue, but they should be filtered out.

      Setup:
      Add the following Workflow:

                      # Identifier of the workflow
                      custom_workflow:
                          name: Custom Workflow
                          matchers:
                              # Which Content Types can use this workflow, optional
                              content_type: article
                              # Which status of the Content item can use this workflow, optional. Available statuses are draft and published.
                              content_status: draft
                          # All stages the content goes through
                          stages:
                              draft:
                                  label: Draft
                                  color: '#f15a10'
                              proofread:
                                  label: Proofread
                                  color: '#5a10f1'
                              done:
                                  label: Done
                                  color: '#301203'
                                  # Content items in this stage don't appear on the Dashboard and in Review Queue.
                                  last_stage: true
                          initial_stage: draft
                          # Available transitions between stages
                          transitions:
                              to_proofread:
                                  from: draft
                                  to: proofread
                                  label: To proofreading
                                  color: '#8888ba'
                                  icon: '/bundles/ezplatformadminui/img/ez-icons.svg#comment'
                                  reviewers:
                                      required: true
                              back_to_draft:
                                  reverse: to_proofread
                                  label: Back to draft
                                  color: '#cb8888'
                                  icon: '/bundles/ezplatformadminui/img/ez-icons.svg#comment'
                              done:
                                  from: proofread
                                  to: done
                                  label: Done
                                  color: '#88ad88'
                                  icon: '/bundles/ezplatformadmi'
      

      Steps to reproduce:
      1. Login as admin
      2. Go to Content -> Content Structure
      3. Start creating a new Article
      4. Execute the "To proofreading" transition, sending it to Admin user
      5. From the Dashboard edit the Draft and execute the "Done transition"
      4. Go to the Dashboard

      Expected:
      Review queue is empty. Done Stage is marked as last_stage, so it should be excluded according to our doc.

      Actual:
      Created Article is visible in Review Queue (in "Done" Stage)

      Attachments

        Activity

          People

            Unassigned Unassigned
            marek.nocon@ibexa.co Marek NocoĊ„
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: