This is a D8 version of #2724199: workflow_execute_transition() does not respect FORCE parameter
and a follow-up issue for #2906773: VBO Action 'Change a node to next Workflow state' has no Apply button

When executing a transition from outside the node, eg, with actions, no calls to $transition->isValid() or #transition->isAlloed() is done.
This should be fixed.

Comments

johnv created an issue. See original summary.

johnv’s picture

Title: workflow_execute_transition() does not respect FORCE parameter when executed from outside (D8) » Action 'change a node to next workflow state' does not respect FORCE parameter

Some analysis reveils that the problem is only for Actions.

  • johnv committed a5817a4 on 8.x-1.x
    Issue #2919305: Action 'change a node to next workflow state' does not...
johnv’s picture

Version: 8.x-1.x-dev » 8.x-1.0-beta6
Status: Active » Fixed

Removal of some code does the trick.

The removed code was duplicating correct working code and contained an error: it always sets the FORCE parameter to TRUE.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.