commit 651755931162e68c4acf5a3f42ed2cb48da500ad Author: fago Date: Mon Jul 22 13:05:48 2013 +0200 Keep the owner property when serializing. diff --git a/includes/rules.core.inc b/includes/rules.core.inc index 774d687..de99e3d 100644 --- a/includes/rules.core.inc +++ b/includes/rules.core.inc @@ -1154,7 +1154,9 @@ abstract class RulesPlugin extends RulesExtendable { // Keep the id always as we need it for the recursion prevention. $array = drupal_map_assoc(array('parent', 'id', 'elementId', 'weight', 'settings')); // Keep properties related to configurations if they are there. - foreach (array('name', 'module', 'status', 'label', 'recursion', 'tags') as $key) { + $info = entity_get_info('rules_config'); + $fields = array_merge($info['schema_fields_sql']['base table'], array('recursion', 'tags')); + foreach ($fields as $key) { if (isset($this->$key)) { $array[$key] = $key; }