Problem/Motivation
I expect notifications to be sent (when all requirements are valid) no matter how the node was published.
Now it works only when the node is published from the node edit form. For example not when published via a scheduled revision.
Steps to reproduce
Create a new node with the required notification field
Set "allow subscribe" & "send notifications" to TRUE and add a message.
Notifications are currently only sent when publishing from the node edit form. They are not triggered during scheduled transitions or bulk operations.
Proposed resolution
Modify the notification logic to respond to the generic node publish event, rather than relying on the specific context of the node edit form. This ensures notifications are sent regardless of the publishing method, whether via the edit form, scheduled transitions, or bulk operations. Implement a hook or event subscriber that listens for the node publish event and processes notifications accordingly.
Issue fork de_notifications-3569921
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
robbertnl commentedComment #4
bojan_dev commentedComment #6
robbertnl commented