Actions broken when using workflow transition form

Created on 30 July 2024, 5 months ago

Problem/Motivation

When using the "Workflow transition form" widget (from Workflow module) the actions are broken. Gin recognizes the workflow transition form as a content form so uses it to build the actions rather than the main entity form's actions.

Steps to reproduce

- Enable workflow module and configure a workflow
- Add workflow to content type
- Set workflow field width to "Workflow transition form"
- Note expected actions (e.g., save, preview, delete, publish toggle) are missing and replaced with actions from the workflow transition form.

Proposed resolution

Add the workflow transition form ID to the $form_ids_to_ignore list. Note the workflow transition form ID is unique between forms so have to use a prefix such as "workflow-transition-".

📌 Task
Status

Active

Version

3.0

Component

Code

Created by

🇺🇸United States greenskin

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

Merge Requests

Comments & Activities

  • Issue created by @greenskin
  • Pipeline finished with Success
    5 months ago
    Total: 207s
    #238531
  • 🇳🇱Netherlands johnv

    Added some instructions to the above test script.

  • 🇮🇳India anchal_gupta

    I have test this issue in my local with the fallowing steps:

    Step1: Enable workflow module
    Step2: create and configure a workflow in /admin/config/workflow/workflow/TYPE
    Step3: Set the 'How to show the available states' to 'action buttons'.
    Step4: Add workflow field to content type
    Step5: Set workflow field widget to "Workflow transition form" replaced with actions from the workflow transition form.

    After applying the MR!480 the workflow transition form ID has been added as per the resolution.

    Attached Screenshot for reference.

  • 🇧🇪Belgium Selfirian

    Hello, I've reviewed this and it still feels broken.

    I've followed the steps in the description, I selected the action buttons option.

    Compared to claro the behavior is not optimal. What happens now is that the workflow action buttons get grouped under the three dots and replace the save button, so this is very confusing for users.

    See enclosed screenshots. I don't have a solution for this.

  • 🇨🇴Colombia yasminOrj

    Hi, I've reviewed the issue, but it still persists. I followed the steps, but the functionality for delete and other options is still not working. I've attached a screenshot for your reference.

Production build 0.71.5 2024