Hi,

I set up a rule with the category ask and exported it in a feature called rhask. When I modified, re-exported, and then tried to revert on the staging server the revert wouldn't work (neither via GUI nor drush). Debugging it I saw that rules_categories_features_revert() was passing the feature name directly to rules_admin_export_by_category() which used it as the category to look for. So this means that to export a rule as a feature currently, it must be tagged with the feature name.

Comments

andyf’s picture

Title: Feature export requires category name to be feature name » Feature export requires category name to be feature name (patch)
Status: Active » Needs review
StatusFileSize
new938 bytes

Here's a patch that loads the feature and uses the rules categories configured within. I've not done any features integration before, but hopefully this is simple enough that it just works!

mitchell’s picture

Component: Feature module support » Provided Module Integrations

Moving to "Provided Module Integrations" component.

kenorb’s picture

Component: Provided Module Integrations » Rules Core
Issue summary: View changes
Status: Needs review » Closed (outdated)

Probably not relevant anymore. See: https://www.drupal.org/drupal-6-eol