Closed (fixed)
Project:
Workflow
Version:
7.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
23 Jul 2013 at 12:44 UTC
Updated:
8 Aug 2013 at 12:01 UTC
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
Comment #1
johnvThis is recently corrected/committed in #2037531-2: workflow_field_choices() has inconsistent result