#106249Related data records cannot be deleted in workspaces under certain circumstances
Description
Description
Under certain circumstances, related data cannot be deleted when you are in a workspace.
For example, if you have a page with a resource inserted in its properties (e.g. an image). If you now switch to a workspace and open the properties of this page and then save the page properties, a new workspace record is created for this page. If you now delete the resource and then save the page properties, the resource reappears in the corresponding tab again, although it should have been removed.
How to reproduce?
1. insert a resource in the properties of a page in the live workspace
2. switch to a workspace
3. go to the page properties of 1. and press Save
4. delete the data record of the resource
5. save
6. -> deleted resource record is displayed again
You can repeat the process between 3. and 6. as often as you like.
Preliminary error analysis
Instead of the Delete method, the Discard method is called in the DataHandler.
Thanks for the great work on TYPO3 and all the effort
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Fix this issue
Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch
- Commit message
-
[BUGFIX] Related data records cannot be deleted in workspaces under certain circumstances Resolves: #106249 Releases: main