Project

General

Profile

Actions

Bug #22121

closed

save document and view page-button in admpanel-popup produces link to workspace window

Added by wini2 no-lastname-given almost 15 years ago. Updated about 11 years ago.

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

0%

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

Description

after updating from 4.2.10 to 4.3.1 i have a strange behavior with the admpanel-popup. when using the edit icon in fe admpanel, the popup opens like usual. after editing and clicking the save document and view-page-button, i get a tripartite frontend-window with live- and workspace-version. the third part of the window shows the typical - but empty - selectors for draft, archive, all and buttons for refresh an preview-link.

the button links to ...typo3/mod/user/ws/wsol_preview.php?id=18

the is strange because i don't use workspace and i don't have the "Versioning Management"-extension installed.

because of this annoying thing, i made a fresh installation with 4.3.1 - with the same result.

(issue imported from #M13541)


Files

preview.patch (1.19 KB) preview.patch Administrator Admin, 2010-02-23 13:48
Actions #1

Updated by Peter Niederlag over 14 years ago

I can confirm this.

Actions #2

Updated by Peter Niederlag over 14 years ago

t3lib_BEfunc::viewOnClick() generates inline JS with a condtional statement like this:

window.open(top.WorkspaceFrontendPreviewEnabled?'../index.php?id=57':'../typo3/mod/user/ws/wsol_preview.php?id=57','newTYPO3frontendWindow');previewWin.focus();

However top.WorkspaceFrontendPreviewEnabled will only be set/available when typo3/js/backend.js is included, which it is only in BE.

The attached patch fixes this by using '$GLOBALS['BE_USER']->user['workspace_preview']' straight away instead of conditional JS and should work anytime.

It won't fixe the problem if the workspace-selector is not available / the user is not able to activate the "enable Frontend preview" in the BE.

Actions #3

Updated by Alexander Opitz over 11 years ago

  • Status changed from Accepted to Needs Feedback
  • Target version deleted (0)

The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?

Actions #4

Updated by Alexander Opitz about 11 years ago

  • Status changed from Needs Feedback to Closed
  • Is Regression set to No

No feedback for over 90 days.

Actions

Also available in: Atom PDF