My content status changes automatically when editing

Created on 23 May 2024, about 1 year ago

I'm encountering a problem that's bothering me. I use Drupal's Workflows module and Content Moderation to manage the publication of my content.

I have defined the following statuses:
- Draft
- Pending review
- Archived
- Online (content published when a content reaches this status)

By default, when content is created (a News, for example), it is in Draft (offline) status.

I've also defined the following transitions:

| Label | From | To |
|---------------------|-------------------------------|-------------|
| Save as draft | Pending review, Archived | Draft |
| Submit for review | Draft | Pending review |
| Archive | Pending review, Online | Archived |
| Online | Pending review, Archived | Online |

I've added the State moderation field to my News creation form, so that the site manager can switch between the different statuses I've defined.

However, I'm encountering the following problem: when a news is modified, its status is automatically changed, without even having modified the State moderation field.

For example, I have a news with the status Online (i.e. published). I go to change its title, save: it's changed to Archived! But I want it to remain Online.

Could you tell me how to avoid this change?

💬 Support request
Status

Active

Version

1.9

Component

User interface

Created by

🇫🇷France arthurg

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

Comments & Activities

  • Issue created by @arthurg
  • 🇮🇳India jayvala

    Hi @arthurg,

    To address the issue you're encountering, you may want to update your transition workflow. Currently, your "Online" transition only applies when content moves from "Pending review" or "Archived" to "Online."

    To ensure that content remains published (Online) while editing the title field, you should modify the "Online" transition. Specifically, add the "Online" status as a valid transition option within your "Online" workflow, allowing the content to remain published without being automatically archived upon title updates. (Refer attached screengrab)

  • 🇮🇳India jayvala

    It's just transition needs to be updated. I am marking as fixed. If you have still any query, please re-open this issues.

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

Production build 0.71.5 2024