Bug #84979
closed
Content duplication on switching from live to workspace
Added by Elena Bartolotti almost 6 years ago.
Updated over 1 year ago.
Description
- Add any content in LIVE
- save it (without close)
- switch to Workspace without close the record.
- on workspace close the content or reload list view
You'll find your content duplicated.
It doesn't happen if you save and close the content before switching to workspace.
Verified on 8.7 and 9
Files
- Category set to Workspaces
- Target version set to 8.7.13
It does not seem to affect 7.6.x, just 8.7.13 and 9.3 (latest master).
Confirmed with the following procedure:
Prerequisites¶
- TYPO3 with a custom workspace
Procedure¶
1) LIVE workspace > Go to page module or list module
2) create a new content element (e.g. header), edit it (e.g. name it "test") and click on save button (NOT save and close just save )
3) Immediately go to your custom workspace using the header dropdown
4) Go to list module
Result¶
You will find two "test" elements,
- the one you created on LIVE
- another one created on that workspace (if you go hover its icon, the tooltip reads "id=XXX New Element!") see also attached file
- Category set to Workspaces
- Status changed from New to Accepted
EditDocumentController
is reloaded with the same NEW...
identifier that gets persisted by DataHandler
again.
NavigationContainer.ts
triggers contentWindow.location.reload
which enforces the form data to be resend and persisted again.
Thus, we need:
- the optional information in modules whether reload is required - in terms of
FormEngine
that would be required
- the optional information which URL to load (the current "canonical URL" of some backend module content)
NavigationContainer.ts
using the information above (if available) instead of using contentWindow.location.reload
Just tested: still present on 10.0.0-dev (latest master)
Still present on 10.2.0-dev (latest master)
- Has duplicate Bug #88003: Changes from draft are saved to live when switching workspaces added
Confirmed. See #88003 for another how-to-reproduce description with screenshots.
- Status changed from Accepted to Needs Feedback
I do think this is fixed now?
- Status changed from Needs Feedback to Closed
this has been fixed in v11 afaiks: editDocumentController now reloads after save, so the post isn't executed again when switching workspaces anymore.
Also available in: Atom
PDF