Closed pKallert closed 1 year ago
Thx for the report. Interesting, this is also possible in the default workspace module and therefore also a core bug.
So the UI here has to be fixed to validate this case and we need a validation. I tried saving and both workspaces disappeared after an error.
Can you also open an issue for the Neos core? We can fix it here and then create a fix for the core based on that.
Now validating in PHP and prevent the selection in the UI.
Description
The module allows for the child workspace to be set as the base workspace of the base workspace
Steps to Reproduce
Create a new workspace "Parent workspace" with base workspace "Live"
Create a new workspace "Child workspace" with base workspace "Parent workspace"
Edit "Parent workspace" and change the base workspace to "Child workspace"
Click "Save changes"
Expected behavior
It should not be possible to select the "Child workspace" as the base workspace of the "Parent workspace"
Actual behavior
If you save the workspace, both workspaces disappear from the list. Users who have their personal workspaces based on one of the workspaces get a 500 error when going to the content page.