When I publish or unpublish a node either using workbench moderation block or "node/%node/moderation" page, hook_entity_update() is not fired, even if the entity is updated ($node->status changes), only hook_workbench_moderation_transition () is invoked.

This leads to many issues, as other modules have no way of knowing that the entity was updated.

It's not an issue in 3.0 version of the module - hook_entity_update is always fired, however, 3.0 is depends on drafty module that is an alpha and has open bugs.

Is Workbench 3.0 + drafty recommended for production sites? One serious issue is calling hook_entity_update twice on node_save from node edit form now.

Comments

Graber created an issue. See original summary.

Graber’s picture

Issue summary: View changes
Graber’s picture

Issue summary: View changes
Graber’s picture

Issue summary: View changes
Graber’s picture

Status: Active » Closed (works as designed)

OK. hook_entity_update() is fired but node_save() is called in a shutdown function and that may be too late in some cases. Not a bug however.