Fatal error: Call to undefined method stdClass::value() in /foo/sites/all/modules/contrib/workflow/workflow_rules/workflow_rules.rules-callback.inc on line 111

{ "rules_change_workflow_for_new_courses" : {
    "LABEL" : "Change Workflow for new courses",
    "PLUGIN" : "reaction rule",
    "OWNER" : "rules",
    "REQUIRES" : [ "workflow_rules", "rules" ],
    "ON" : { "node_insert--course" : { "bundle" : "course" } },
    "DO" : [
      { "workflow_rules_set_state" : { "node" : [ "node" ], "workflow_state" : { "value" : { "2" : "2" } } } }
    ]
  }
}

Version 7.x-2.4

Comments

jasonrichardsmith@gmail.com’s picture

This doesn't appear to have ever been tested. This sub module should be pulled from production.

Looking at the code, I can't see how this was ever tested.

johnv’s picture

@jasonrichardsmith@gmail.com,
looking at the code, you might propse a correction, or just skim the issue queue:
#2304365: Rules Error: Call to undefined method stdClass::value() workflow_rules.rules-callback.inc line 111
This should be fixed in the current -dev-version.