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.

CommentFileSizeAuthor
actions_multiple_nodes.patch966 bytestom friedhof

Comments

Leeteq’s picture

Subscribing.

jvandyk’s picture

Version: 5.x-2.0 » 5.x-1.x-dev
Status: Needs review » Fixed

Committed. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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