Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293129

New translations for moderated nodes are not created in the initial workflow state

$
0
0

Problem/Motivation

We have defined a workflow with these states:

  1. Draft
  2. Needs Review
  3. Published

We have two roles:

  • author (Who creates content in draft and sets it to "needs review")
  • admin (Who can transition from "needs review" to "published")

We have applied the patch from comment #7 of issue #3020387: [backport] Moderation state is the same for all node's translations in edit page.

Steps to reproduce:

  1. An author has created a node in English, and sets it to "needs review".
  2. Now the author wants to add a german translation for this node. He goes to the Translate tab and clicks on the "Add" Button.
  3. The form where he can edit the node and add the german texts is displayed.
  4. Wen he clicks "Save" he gets the error message "Invalid state transition from Needs review to Needs review".

Logically that is correct, because the author role doesn't have the permission to edit nodes which are in the state "needs review".

But shouldn't new translations be treated as new nodes and therefore be created as "draft"?

Proposed resolution

Find a way to preserve the existing behavior for BC, but either document a way to override or configure this for new translations.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 293129

Trending Articles