When constructing the allowed transitions in workflow_field_choices() / WorkflowState->getOptions(), no options are returned, when $FORCE is TRUE.
Also, the results of the 'transition permitted' hook are not in accordance with the documentation: an array is expected in code, instead of the more logical and documented boolean.

Comments

johnv’s picture

Title: incorrect allowed choices with $force == TRUE and hook 'transition permitted'. » Incorrect allowed choices with $force == TRUE and hook 'transition permitted'.
Status: Active » Fixed
Issue tags: +API change

This is committed here.

The change in the return code is documented here: #2148925: Arguments and return code in hook_workflow('transition permitted', ...)

Status: Fixed » Closed (fixed)

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