Line 318
function workflow_transition($node, $sid, $force = FALSE) {
// Make sure new state is a valid choice.
if (array_key_exists($sid, workflow_field_choices($node, $force))) {
If there are no choices for a user then this line will throw a wobbly.
The fix would be to check choices first with something like:

if (workflow_field_choices($node, $force) == FALSE) {
  return;
}

Comments

johnv’s picture

Status: Active » Fixed

This is recently corrected/committed in #2037531-2: workflow_field_choices() has inconsistent result

Status: Fixed » Closed (fixed)

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