Project

General

Profile

Actions

Bug #88003

closed

Changes from draft are saved to live when switching workspaces

Added by NGUYEN Duc Quan over 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Workspaces
Target version:
-
Start date:
2019-03-26
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hi,

I don't know if this behavior is wanted or rather a bug. I think it is a bug.

When you

1) make changes, e.g. changing page title, in a draft workspace
2) save the change
3) and then switch directly afterwards to live workspace

=> The result is that the changes are also being saved in the live version of the page when the page reloads.

I think this is because the iframe in which the page title has been changed is being reloaded with the save action. But I couldn't find the right way to prove this theory.

I noticed this issue in Typo3 v8.7.24 and 9.5.5. So I went to look for this issue in the forge but couldn't find any results. That's why I am asking here if this behavior is, probably, wanted?


Files

one.png (17 KB) one.png Riccardo De Contardi, 2019-07-10 22:11
two.png (25.7 KB) two.png Riccardo De Contardi, 2019-07-10 22:11
three.png (66.9 KB) three.png Riccardo De Contardi, 2019-07-10 22:11

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #89294: Workspace Switcher re-post iframeClosed2019-09-27

Actions
Is duplicate of TYPO3 Core - Bug #84979: Content duplication on switching from live to workspaceClosed2018-05-12

Actions
Actions #1

Updated by Riccardo De Contardi over 5 years ago

this behavior cannot be IMHO intended; it is also present on 10.0.0-dev (latest master)

Actions #2

Updated by Riccardo De Contardi over 5 years ago

If you follow instead these steps, the issue is not present

- create a page in live WS
- go to draft WS
- edit it clicking on the title (in page module), changing it and clicking on save icon
- go again in live WS

Actions #3

Updated by NGUYEN Duc Quan over 5 years ago

Riccardo De Contardi wrote:

If you follow instead these steps, the issue is not present

- create a page in live WS
- go to draft WS
- edit it clicking on the title (in page module), changing it and clicking on save icon
- go again in live WS

Thank you for confirming and testing.

You are right, if done the other way around like you described then it works as it should. But still the initial described scenario is a common workflow.

Does your test confirms that the issue is because of a workspace hook?

Updated by Riccardo De Contardi over 5 years ago

The issue is still present on 10.0.0-dev (latest master); to experience it you can follow these steps:

- create a page in live WS
- go to draft WS
- edit it, for example clicking on the pencil icon

Note that it is fundamental that the editing page form opens; you can also use the context menu in pagetree

- save it
- switch to live workspace

Results:

the pagetree reloads and the title changed in draft workspace is adopted even in live workspace!

Additional notes

- as I reported on my previous comment, if you edit the page title in a way that does not open the editing page form, the issue does not happen

- It is strange that the issue affects only newly created pages if you edit again the title (in draft workspace again) it does not happen as far as I can see
- when you switch to LIVE workspace, if you don't close the editing form, the editing form of the draft workspace remains open - it should be better if it would be closed when switching workspaces.

Actions #5

Updated by Riccardo De Contardi over 4 years ago

  • Related to Bug #89294: Workspace Switcher re-post iframe added
Actions #6

Updated by Riccardo De Contardi over 4 years ago

I was actually wrong: It happens also on already saved pages

Actions #7

Updated by Riccardo De Contardi over 4 years ago

Related issue #89294 contained an approach that has been abandoned - look at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61849

Actions #8

Updated by Christian Kuhn over 4 years ago

  • Is duplicate of Bug #84979: Content duplication on switching from live to workspace added
Actions #9

Updated by Christian Kuhn over 4 years ago

  • Status changed from New to Closed

Closing as dupe of #84979 - let us follow up over there.

Actions

Also available in: Atom PDF