The active workspace is not persisted for the entire lifecycle of a form

Created on 20 May 2025, 1 day ago

Problem/Motivation

When opening a form in a workspace, that workspace should be active until the form is submitted.

Steps to reproduce

- Activate a workspace and open the node add form
- Open a new tab and activate another workspace
- Go back to the initial tab, fill and submit the form
- Observe that the node is tracked by the second workspace instead of the initial one

Proposed resolution

Ensure that the initially active workspace is persisted through the entity lifecycle of the form.

Remaining tasks

Review.

User interface changes

Nope.

Introduced terminology

N/A

API changes

API addition with BC:
- A new optional argument ($persist = TRUE) is added to WorkspaceManagerInterface::setActiveWorkspace()

Data model changes

N/A

Release notes snippet

N/A

πŸ› Bug report
Status

Active

Version

11.0 πŸ”₯

Component

workspaces.module

Created by

πŸ‡·πŸ‡΄Romania amateescu

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