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.

Command icon 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

robbertnl created an issue. See original summary.

robbertnl’s picture

Issue summary: View changes

bojan_dev’s picture

Status: Active » Needs work

  • robbertnl committed 436e8eb8 on 1.x
    fix: #3569921 Notifications works from node edit form only
    
robbertnl’s picture

Status: Needs work » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.