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 |
Jump to:
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.
| Attachment | Size |
|---|---|
| actions_multiple_nodes.patch | 966 bytes |

#1
Subscribing.
#2
Committed. Thanks.
#3
Automatically closed -- issue fixed for two weeks with no activity.