Closed (fixed)
Project:
Rules
Version:
6.x-1.x-dev
Component:
Provided Module Integrations
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Mar 2010 at 20:42 UTC
Updated:
26 May 2012 at 16:12 UTC
While setting rules features export, I ran into the following js error when ticking "Rule configuration by category" in the add feature page:
Fatal error: Unsupported operand types in ..../sites/all/modules/rules/rules/rules.export.inc on line 204
It seems the '#conditions' key is missing from $rule in rules_features_process_rule() and therefore the variable $element passed to _rules_features_process_rule() is NULL, hence the error above. Adding a condition to all the rules being exported fix this. It seems this problem does not happen if there are no actions in a rule.
Comments
Comment #1
fagoI see, thanks for catching that. I've committed a fix to CVS.
Comment #3
mitchell commentedMoving to "Provided Module Integrations" component.