Bug #82456

Multiple usage of "save and preview" button does not reload preview tab

Added by Felix Nagel 15 days ago. Updated about 3 hours ago.

Status:
Under Review
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2017-09-11
Due date:
% Done:

0%

TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

When editing a content element, it's possible that an editor clicks the "save and preview" button after each content change. In this case, the preview tab will not reload and therefor will not show updated content.

Steps to reproduce:

  • Add a text content element
  • Use "save and preview" button -> new tab opens
  • Go back to BE tab and change content
  • Click "save and preview" button again -> preview tabs gets focus but does not reload

Introduced with TYPO3 8.7.5 in this commit: https://github.com/TYPO3/TYPO3.CMS/commit/4973abb62beed43e37f6377e10ef1d48ba8c1c8f

Using a simple `previewWin.location.reload();` in `viewOnClick` solves the issue but breaks the initial click on "save and preview". Perhaps adding a time stamp GET parameter is another option? Or adding some on load event?


Related issues

Related to Core - Bug #81250: Preview link of content element misses the anchor in some cases Under Review 2017-05-18

History

#1 Updated by Felix Nagel 15 days ago

  • Related to Bug #81250: Preview link of content element misses the anchor in some cases added

#2 Updated by Helmut Hummel about 7 hours ago

  • Status changed from New to Accepted

I can confirm this

#3 Updated by Helmut Hummel about 7 hours ago

  • Is Regression set to Yes

#4 Updated by Frank Naegler about 6 hours ago

  • Status changed from Accepted to In Progress
  • Assignee set to Frank Naegler

#5 Updated by Gerrit Code Review about 6 hours ago

  • Status changed from In Progress to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54218

#6 Updated by Gerrit Code Review about 4 hours ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54218

#7 Updated by Gerrit Code Review about 4 hours ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54218

#8 Updated by Gerrit Code Review about 4 hours ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54218

#9 Updated by Gerrit Code Review about 4 hours ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54218

#10 Updated by Gerrit Code Review about 3 hours ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54218

#11 Updated by Gerrit Code Review about 3 hours ago

Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54218

Also available in: Atom PDF