Closed (outdated)
Project:
Drupal core
Version:
6.19
Component:
node.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 May 2010 at 17:46 UTC
Updated:
2 Mar 2016 at 22:18 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
winarto commentedP.S when i remove action_x from the hook_nodeapi, the action_x is not called at all when the condition is fulfilled, so i'm sure there is no other function that called action_x when condition fulfilled.
Comment #2
winarto commentedSorry, in case it is not clear...
I attached the screenshot...
In this screenshot, i call drupal_set_message('You just updated a node.') when $ops is update (without any additional condition)
so, when i update, the message appear twice...
Comment #3
glass.dimly commentedAlright, I'm getting this too.
hook_nodeapi update is being called twice on node save.
If I dump the node in each, changes are not persistent across execution of nodeapi update.
That means the node is being regenerated by the form and submitted twice.
I assume this is some contrib module, because it seems unlikely this is also a core bug. Attached is my listing of enabled modules.
Comment #4
glass.dimly commentedI'm going to fess up here and admit that this was caused by a syntax error, for posterity.
Break statement missing.