Project

General

Profile

Actions

Bug #10693

closed

Save and view command previews wrong page record

Added by Francois Suter over 13 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Category:
Workspaces
Target version:
-
Start date:
2010-11-09
Due date:
% Done:

100%

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

Description

When editing a version of a page record in a workspace and pressing the "Save and view" button, the wrong page id is called.

Assuming an existing page with id = 55. It is edited and gets a version overlay record with id = 67.

When previewing through Web > List of Web > List (i.e. when relying on links generated by t3lib_BEfunc::viewOnClick()), the URL generated is:

http:www.example.com/index.php?id=55

But when clicking on the "Save and view" icon after editing the page, the URL generated is:

http:www.example.com/index.php?id=67

This causes various problems when the split-screen preview (a.k.a. "Frontend preview" is enable):

  • if the page was just modified or a new page was created, the LIVE frame will show a broken rootline error, the Workspace frame is correct
  • if the page was moved, you get a "page not found" error in both frames

The obvious solution is to change the "Save and view" behavior so that it uses the "t3ver_oid" in case it exists rather than the "uid" to generate the preview URL.

I'm going to work on a patch for this (writing this bug report helped me think about various scenarios, now I need to write the proper patch). I'm submitting this here rather than to the Core list because I wanted to have some feedback from the workspace team before submitting a patch to the core list.


Files

forge10693.diff (2.13 KB) forge10693.diff Francois Suter, 2010-11-10 09:56
forge10693_v2.diff (913 Bytes) forge10693_v2.diff Francois Suter, 2010-11-10 11:01
10693.patch (2 KB) 10693.patch Tolleiv Nietsch, 2010-11-24 20:04
Actions

Also available in: Atom PDF