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

fago’s picture

Status: Active » Fixed

I see, thanks for catching that. I've committed a fix to CVS.

Status: Fixed » Closed (fixed)

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

mitchell’s picture

Component: Features integration » Provided Module Integrations

Moving to "Provided Module Integrations" component.