Conflict with Core Workflow/Content Moderation

Created on 30 June 2020, over 4 years ago
Updated 9 August 2023, over 1 year ago

The Token Content Access Node module conflicts with Core Workflow/Content Moderation.

Core Workflow/Content moderation works as designed but once TCA Node is enabled node save operations create a two rows in the node_revision table with identical timestamps. There should be only one record created. This confuses Content Moderation and the result is that one can never edit an un-published draft.

1. Create a new node in draft form.
2. Publish it.
3. Create a new draft from the published page

At this point the un-published draft should be the "latest version" and editing should expose it for editing. But it's never accessible. Trying to edit only produces a new draft from the published version.

πŸ› Bug report
Status

Needs work

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States cdesautels

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.

  • πŸ‡ΊπŸ‡ΈUnited States carsoncho Kansas City, MO

    I believe this issue is related to πŸ› TCA is causing entities to be save twice Active .

    We were running into this on a Drupal 10.1 site with version 3.0 of TCA and TCA node enabled along with core's workflows and content moderation modules. With TCA enabled I was running into issues where I was not able to edit the current revision. It kept loading the published revision although in the revisions tab it showed revisions being made. Secondly each revision that was saved after enabling TCA caused the revision ID to increment by 2 which I found odd. I believe this is caused by the node being saved twice which is noted in πŸ› TCA is causing entities to be save twice Active . Once the patch was applied from 3375544 these issues were resolved.

  • Status changed to Needs work over 1 year ago
  • πŸ‡΅πŸ‡°Pakistan monymirza Islamabad

    Hi @lobodacyril,

    did you tried to debug like in #5?

    Steps to reproduce on fresh install.

    1. Install Content moderation.
    2. Configure a content type to use content revision and moderation states.
    3. Set TCA to the same content type.
    4. try to save the node with debug info in #5.

    Another ref πŸ› TCA is causing entities to be save twice Active

Production build 0.71.5 2024