Scheduled states is ignored by scheduler

Created on 6 March 2019, almost 6 years ago
Updated 20 March 2023, almost 2 years ago

1. Configure one or more scheduled states.
2. Create content in a state that is not in the scheduled state list, and schedule it for publishing.
3. At schedule time, the node is published, but shouldn't be.

We validate the transition in onPrePublish, but have no way of aborting the execution of the remaining scheduler.module publish() function.

We need to implement hook_scheduler_scheduler_allow_publishing() so that when publish() calls isAllowed, we check the transition there, and return FALSE if it's not allowed.

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom nicrodgers Monmouthshire, UK

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024