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

After clicking "Send to design" button, draft is created.

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: High High
    • None
    • 3.0.0-beta1, 2.5.5
    • Workflow

    Description

      Workflow configuration

      1. Create app/config/workflows.yml (for v3: config/packages/ezplatform_workflow.yaml):

      ezpublish:
          system:
              default:
              #admin:
                  workflows:
                      article_workflow:
                          name: 'Article Workflow'
                          matchers:
                              content_type: article
                          stages:
                              draft:
                                  label: 'Draft'
                                  color: '#aaa'
                              design:
                                  label: 'Design'
                                  color: '#9ff'
                              proofread:
                                  label: 'Proofread'
                                  color: '#99f'
                              done:
                                  color: '#0f0'
                                  last_stage: true
                          initial_stage: draft
                          transitions:
                              to_design:
                                  from: draft
                                  to: design
                                  icon: '/bundles/ezplatformadminui/img/ez-icons.svg#approved'
                                  label: 'Send to Design'
                                  notification:
                                      user_group: 13 # Notify "Editors" group
                                      user: 14 # ... and "Administrator" user
                              to_proofread:
                                  from: design
                                  to: proofread
                                  icon: '/bundles/ezplatformadminui/img/ez-icons.svg#approved'
                                  label: 'Send to Proofread'
                                  notification:
                                      user_group: 13 # Notify "Editors" group...
                                      user: 14 # ... and "Administrator" user
                              to_done:
                                  from: proofread
                                  to: done
                                  icon: '/bundles/ezplatformadminui/img/ez-icons.svg#approved'
                                  label: 'Done'
      

      2. Import in app/config/config.yml (for v3: tere is no need to do this step):

          - { resource: workflows.yml } 
      Steps:

      1. Create a user with following policies:

      • User/Login
      • Content/Create
      • Content/Read
      • Content/Versionread
      • Workflow/Change_state with to_design state

      2. Log in as a created user
      3. Go to Content/Content structure and click Create
      4. Select Article
      5. Fill required fields and click Send to design

      Actual result:

      Page is reloaded, but draft was created. There is no green notification, but you can see it in Dashboard/Me/Drafts.

      Expected result:
      • If policies are OK, Article should change state to design.
      • If any policy is missing, user should not see Send to design button
      • If it is correct that draft is created, Content draft saved. notification should be displayed .

      Attachments

        Activity

          People

            Unassigned Unassigned
            barbara.grajczyk@ez.no Barbara Grajczyk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: