Bug #89927
closedWorkspace Publishing: marked records not cleared
100%
Description
The publishing process in the workspace module seems to not clear the selected items after a first run.
Thus publishing multiple times (without reloading the whole backend) crashes with error messages like this:
Element "tt_content:35" does not existHow to reproduce:
- open workspace module
- select a record
- use "Choose selection action" -> Publish
- confirm the modal -> first publish works, module seems to reload and the previously selected is not shown anymore
- select another record and publish again
- modal keeps spinning, network request shows an exception like above
Although the first record is not shown anymore in the workspace module, it is included in the second request again. The selection of records is stored in Backend.markedRecordsForMassAction, which seems to be not cleared after any publishing action.
I could reproduce this error in TYPO3 8.7 and 9.5, in 10.2 the backend module seems to be broken and crashed with a different error. But judging from the TypeScript code, the selection seems to be not cleared either https://github.com/TYPO3/TYPO3.CMS/blob/master/Build/Sources/TypeScript/workspaces/Resources/Public/TypeScript/Backend.ts
For anyone with the same problem: just reload the workspace-module, e.g. by clicking the page in the pagetree again and run the second publish afterwards.