a3 parameter passed twice to actions_do from actions_nodeapi

therzog - June 3, 2009 - 16:45
Project:Actions
Version:5.x-2.6
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

This issue http://drupal.org/node/357031 was raised in D6 and fixed, but it exists in Actions 5-2.x as well, here is a patch:

--- actions.module 20 Sep 2008 22:21:15 -0000 1.43
+++ actions.module 3 Jun 2009 16:40:32 -0000
@@ -833,7 +833,7 @@
       }
       // Since we know about the node, we pass that info along to the action.
       $context['node'] = $node;
-      $result = actions_do($aid, $objects[$action_info['type']], $context, $a4, $a4);
+      $result = actions_do($aid, $objects[$action_info['type']], $context, $a3, $a4);
     }
     else {
       actions_do($aid, $node, $context, $a3, $a4);
@@ -1849,4 +1849,4 @@
   }
}

-include_once(drupal_get_path('module', 'actions') .'/actions.inc');
\ No newline at end of file
+include_once(drupal_get_path('module', 'actions') .'/actions.inc');

AttachmentSize
actions_nodeapi.patch679 bytes
 
 

Drupal is a registered trademark of Dries Buytaert.