Project

General

Profile

Actions

Bug #24376

closed

Save and view triggers preview of wrong page

Added by Francois Suter almost 14 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-12-21
Due date:
% Done:

100%

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

Description

Consider the following simple scenario:

- go to some workspace
- make sure "Enable frontend preview" is not checked (i.e. you see the split view when previewing)
- modify a page
- click the Save & View button a first time => the preview works fine. Note the id used in the preview URL. It is the id of the original page, not the version record.
- click the Save & View button again => the LIVE version is broken. The id used in the preview URL is the id of the version this time, not of the page.

This last behavior is wrong. The preview should be called with the id of the original page. TYPO3 takes care of version overlays all by itself. The problem comes from the fact that when we are editing a version of a page and we click on Save & View TCEforms passes the id of the version of the page being edited to the preview link and not the id of the original page.

This does not happen on the first click, because the version doesn't exist yet at that point.

The proposed patch fixes t3lib_BEfunc::viewOnClick() to look for an original page id and use it if it exists.

As far as I can tell, this bug has existed ever since we have workspaces.

It has been solved separately in 4.5, in the course of the work on the new Workspaces module.
(issue imported from #M16794)


Files

16794_4-3.diff (904 Bytes) 16794_4-3.diff Administrator Admin, 2010-12-21 11:10
16794_4-4.diff (912 Bytes) 16794_4-4.diff Administrator Admin, 2010-12-21 11:11

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #21706: Broken rootline when previewing versioned pages (not workpaces)Closed2009-11-26

Actions
Has duplicate TYPO3 Core - Bug #21412: "No TypoScript template found!" Error when you use the Save&View Button on a new Version of a Page-RecordClosed2009-10-31

Actions
Actions

Also available in: Atom PDF