Project

General

Profile

Actions

Bug #22446

closed

Preview in BE opens Workspace-preview

Added by Steffen Kamper over 14 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-04-14
Due date:
% Done:

0%

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

Description

There was a long settings for years:
window.open(top.WorkspaceFrontendPreviewEnabled?'" .
- $urlPreviewDisabled . "':'" . $urlPreviewEnabled

you see that it's turned around.

But reference is wrong too. The value resides in
TYPO3.configuration.workspaceFrontendPreviewEnabled

But,
1) this is static, it change when you reload backend.php. Menu is dynamic, so never fits.
2) setting is turned around for obvious reasons

Solution: When using workspace selector, change the setting dynamic. Use the correct var and the correct comparison.
Splitted in inWorkspace and workspaceFrontendPreviewEnabled, so the workspace preview is enabled only if you are in any workspace and have the preview enabled.

(issue imported from #M14097)


Files

14097.diff (3.09 KB) 14097.diff Administrator Admin, 2010-04-14 00:27
Actions #1

Updated by Steffen Kamper over 14 years ago

committed to trunk rev 7359

Actions

Also available in: Atom PDF