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
| Comment | File | Size | Author |
|---|---|---|---|
| Screen Shot 2020-11-19 at 3.16.07 PM.png | 65.65 KB | churel |
Issue fork scheduled_transitions-3183592
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
Comment #3
jibranLet's add some tests.
Comment #4
churel commentedMost tests are good. I just don't get the error with the 7.3 version. Do you have any idea ?
Comment #5
gaurav_manerkar commented