Problem/Motivation

When you try to add a scheduled transition to a translation node (not the source one) the transition dropdown has wrong options. It always get the transitions options from the source node.

Steps to reproduce

  • Create a node with a source language and publish it.
  • Create a translation and create two or three revision with different state
  • Go to the schedule transition page and add a new one
  • Select a revision with a different state than publish

The dropdown menu will be fill with transition from publish to something else where it should be the one from the translation.

Proposed resolution

The ScheduledTransitionAddForm class should translate the entity before getting its transitions

CommentFileSizeAuthor
Screen Shot 2020-11-19 at 3.16.07 PM.png65.65 KBchurel
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

churel created an issue. See original summary.

jibran’s picture

Status: Active » Needs work
Issue tags: +Needs tests

Let's add some tests.

churel’s picture

Most tests are good. I just don't get the error with the 7.3 version. Do you have any idea ?

gaurav_manerkar’s picture

Version: 2.x-dev » 2.4.x-dev