Index: includes/rules.plugins.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/rules/includes/Attic/rules.plugins.inc,v
retrieving revision 1.1.2.6
diff -u -p -r1.1.2.6 rules.plugins.inc
--- includes/rules.plugins.inc	14 Jan 2011 12:01:06 -0000	1.1.2.6
+++ includes/rules.plugins.inc	29 Jan 2011 06:02:24 -0000
@@ -41,8 +41,8 @@ class RulesAction extends RulesAbstractP
           $var_name = isset($this->settings[$name . ':var']) ? $this->settings[$name . ':var'] : $name;
           $state->addVariable($var_name, $data, $this->info['provides'][$name]);
           rules_log('Added the provided variable %name of type %type', array('%name' => $var_name, '%type' => $this->info['provides'][$name]['type']));
-          if (!empty($this->info['provides'][$name]['save']) && $state->variables[$name] instanceof EntityDrupalWrapper) {
-            $state->saveChanges($var_name, $state->variables[$name]);
+          if (!empty($this->info['provides'][$name]['save']) && $state->variables[$var_name] instanceof EntityDrupalWrapper) {
+            $state->saveChanges($var_name, $state->variables[$var_name]);
           }
         }
       }
