Nodes that are moderated but not supposed to be scheduled are published

Created on 5 May 2021, over 3 years ago
Updated 18 February 2024, 10 months ago

Problem/Motivation

When you install the module you can specify for which content types the schedule time field is shown (and the publishing is applied). The problem is that node drafts of the content types where the field is hidden are always treated as if they were scheduled to publish in the past. So the next time the cron runs such nodes are published.

Steps to reproduce

  1. Create a content type (or use existing)
  2. Go to Admin menu > Configuration > Workflow > Workflows, enable the content moderation for the content type
  3. Go to Admin menu > Configuration > System > Cron > Moderation scheduler, set it up so the moderation scheduler is not enabled for the content type
  4. Create a new node (a draft) of the content type
  5. Run the cron

Expected result:
The node stays unpublished

Actual result:
The node gets published

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: outdated

Version

7.4

Component

Code

Created by

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