Closed (fixed)
Project:
Workflow Notifications
Version:
3.0.0-beta5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Mar 2020 at 08:12 UTC
Updated:
22 Jul 2025 at 15:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
johnvComment #3
johnvI have checked both your patches.
However, i am not sure if this is needed.
the Creation state is not selectable by purpose. The Workflow patch makes it available every where.
Perhaps it is sufficient to use hooK_entity_insert, and then call workflow_get_workflow_field_names(), to check if this is a Workflow entity.
Comment #4
rhsantos commentedThanks for your answers Johnv,
It was just my solution, I needed to send email when new content is created and inserted in the workflow but there was no way to select creation state, so I did on my own. I just think it is desirable to have the option to notify when creation is done.
Regards, Ricardo
Comment #5
anas_maw commented@johnv please review this patch, adding hook_entity_insert will solve the issue
Comment #6
jrochate commentedI have made a small array test to avoid null / empty $data array.
Comment #7
jrochate commentedComment #8
jrochate commentedComment #10
johnvIndeed, the hook_entity_insert() was missing in both submodules.
Fixed in 3.0.x