Index: includes/actions.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/actions.inc,v retrieving revision 1.7 diff -u -p -r1.7 actions.inc --- includes/actions.inc 8 Dec 2007 14:06:20 -0000 1.7 +++ includes/actions.inc 26 Dec 2007 19:57:55 -0000 @@ -39,7 +39,7 @@ * An associative array containing the result of the function that * performs the action, keyed on action ID. */ -function actions_do($action_ids, $object = NULL, $context = NULL, $a1 = NULL, $a2 = NULL) { +function actions_do($action_ids, &$object, $context = NULL, $a1 = NULL, $a2 = NULL) { static $stack; $stack++; if ($stack > variable_get('actions_max_stack', 35)) { Index: modules/trigger/trigger.module =================================================================== RCS file: /cvs/drupal/drupal/modules/trigger/trigger.module,v retrieving revision 1.10 diff -u -p -r1.10 trigger.module --- modules/trigger/trigger.module 19 Dec 2007 17:45:43 -0000 1.10 +++ modules/trigger/trigger.module 26 Dec 2007 19:57:55 -0000 @@ -206,7 +206,7 @@ function _trigger_normalize_node_context /** * Implementation of hook_nodeapi(). */ -function trigger_nodeapi($node, $op, $a3, $a4) { +function trigger_nodeapi(&$node, $op, $a3, $a4) { // Keep objects for reuse so that changes actions make to objects can persist. static $objects; // Prevent recursion by tracking which operations have already been called. @@ -299,7 +299,8 @@ function trigger_comment($a1, $op) { actions_do($aid, $objects[$action_info['type']], $context); } else { - actions_do($aid, (object) $a1, $context); + $comment = (object) $a1; + actions_do($aid, $comment, $context); } } } @@ -392,7 +393,8 @@ function trigger_taxonomy($op, $type, $a 'op' => $op ); foreach ($aids as $aid => $action_info) { - actions_do($aid, (object) $array, $context); + $taxonomy_object = (object) $array; + actions_do($aid, $taxonomy_object, $context); } }