core icon indicating copy to clipboard operation
core copied to clipboard

Workflow errors when creating contentlets in a different locale in the new Edit Content

Open KevinDavilaDotCMS opened this issue 1 year ago • 2 comments

Problem Statement

When creating a new version of a contentlet in a different locale, the workflow actions fail. After switching locales, an endpoint is triggered to list the available workflow actions for the contentlet. However, it appears that the workflows returned belong to the base contentlet, not the one in the newly selected locale. As a result, attempting to execute any workflow for this new locale fails. The error messages provided are vague and cause confusion for the user.

Suspected cause: Testing shows that the workflows do not update when switching locales. This suggests that even though the endpoint to list workflows is being called, the reference remains tied to the original contentlet rather than using the identifier of the new contentlet in the selected locale.

Steps to Reproduce

It is recommended to use a workflow with multiple steps, such as Blog.

  • Create a new Content Type.
  • Create a new contentlet using this Content Type.
  • Check the workflow actions available for this contentlet, then switch to a different locale.
  • Notice that the workflow actions do not change.
  • Execute any workflow action (with the new locale) — it will fail.

https://github.com/user-attachments/assets/170e4908-1397-424e-bb59-e86771ac2c47

Acceptance Criteria

  • Workflow actions must be listed according to the selected contentlet and locale.
  • Workflow actions must not fail after switching locales.

dotCMS Version

25.08.11-1

External Links... Slack Conversations, Support Tickets, Figma Designs, etc.

https://dotcms.freshdesk.com/a/tickets/32521

KevinDavilaDotCMS avatar Aug 12 '25 17:08 KevinDavilaDotCMS

QA PASSED ✅

https://github.com/user-attachments/assets/d56b7a7d-6f0e-4b45-b853-52edca071b3e

adrianjm-dotCMS avatar Apr 17 '26 19:04 adrianjm-dotCMS