Actions do not run when saving multiple nodes at once.

tom friedhof - March 20, 2008 - 23:06
Project:Actions
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

I wrote an import script to pull data from a legacy system periodically. I have an action that is supposed to run on every presave op of nodeapi. Only the first node was having the action run on it.

After looking at the actions_nodeapi script I saw that a static variable was declared to ensure the function to get stuck in recursion. I've added the $node->nid as a key to the array to keep track of $op's on a specific $node->nid so my import script would work.

AttachmentSize
actions_multiple_nodes.patch966 bytes

#1

DanielTheViking - April 2, 2008 - 20:46

Subscribing.

#2

jvandyk - April 29, 2008 - 19:32
Version:5.x-2.0» 5.x-1.x-dev
Status:patch (code needs review)» fixed

Committed. Thanks.

#3

Anonymous (not verified) - May 13, 2008 - 19:33
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.