Make "clone on publish" compatible with entity_workflow module

Created on 3 March 2025, about 2 months ago

Problem/Motivation

The checkbox "Clone workspace details into a new draft workspace" is not available when entity workflow is enabled for workspaces.

Steps to reproduce

  • Add entity_workflow_module to the modules directory.
  • Enable the entity_workflow_workspace module.
  • Create a new workspace (say "foo").
  • Add/Edit some content in this workspace.
  • Click on "Manage workspace" link from the toolbar for the workspace.
  • Go to the "Workspace workflow" tab.
  • Check "Submit for Review" checkbox and click "Change".
  • Check "Approve" and then "Change".
  • Check "Publish".

Expected result: You should see the checkbox "Clone workspace details into a new draft workspace".
This checkbox is provided by the form_alter hook by wse.module

Actual result: The checkbox is not present.

Proposed resolution

Implement the form_alter for the entity_workflow form as well.

Remaining tasks

MR and review.

User interface changes

A new checkbox is available on the entity workflow form that contains the publish button.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇮🇳India ajits India

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024