Issue Bug Rejected

#52629Tx_Workspaces_Service_Fehooks corrupts page output

David Gurk 10/09/13, 12:53 updated 03/24/19, 12:55

Description

The hook_eofe() inside Workspaces extension don’t respect TypoScript setup with “config.admPanel = 0”.

The situation:
- I have 2 pages.
- “Page A” has an active admin panel with an active simulated date.
- “Page B” has a TypoScript setup with “page.config.admPanel = 0”.

The problem:
- In the HTML from “Page B”, the content (script-tag) from typo3_src-4.7.15/typo3/sysext/workspaces/Resources/Private/Templates/Preview/Preview.html is rendered.
- This unnecessary code can break javascript.

A Solution?
Within typo3_src-4.7.15/typo3/sysext/workspaces/Classes/Service/Fehooks.php the admin panel visibility state should be respected. Maybe with a condition similar to this?

$tsfeBeUserAuth = t3lib_div::makeInstance('t3lib_tsfeBeUserAuth');
if(!$tsfeBeUserAuth->isAdminPanelVisible()) {
    return;
}

Hope for your help and a fix for the next update. =)

Best regards,

David

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.