Bug #22121
closedsave document and view page-button in admpanel-popup produces link to workspace window
0%
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
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.
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)?
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.