Project

General

Profile

Actions

Bug #24376

closed

Save and view triggers preview of wrong page

Added by Francois Suter over 13 years ago. Updated almost 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 #1

Updated by Susanne Moog about 13 years ago

  • Target version deleted (4.4.7)
Actions #2

Updated by Susanne Moog about 13 years ago

  • Target version set to 1061
Actions #3

Updated by Mr. Hudson about 13 years ago

Patch set 1 of change I7e8136c928edef31c6e3cf3259dff2b303ff32d4 has been pushed to the review server.
It is available at http://review.typo3.org/1539

Actions #4

Updated by Susanne Moog about 13 years ago

  • Status changed from New to Under Review
Actions #5

Updated by Francois Suter about 13 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #6

Updated by Oliver Hader almost 13 years ago

  • Status changed from Resolved to Closed
Actions #7

Updated by Ernesto Baschny almost 11 years ago

  • Target version deleted (1061)
Actions

Also available in: Atom PDF