Skip to content
Snippets Groups Projects
Commit ce509a52 authored by Stefan Froemken's avatar Stefan Froemken Committed by Christian Kuhn
Browse files

[BUGFIX] Error in "open in new window" in task module

Reproduce:
Call tasks center module, click on the gray icon
"open in new window" (right top corner)

Error:
UnexpectedValueException thrown in file
\typo3\mod.php in line 55.

Change-Id: Ic94913f2bee2019c9be1954fc9ff78f90b8c5f84
Fixes: #40154
Related: #40095
Releases: 6.0
Reviewed-on: http://review.typo3.org/14063
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
parent ff7ea378
Branches
Tags
No related merge requests found
......@@ -382,7 +382,7 @@ class TaskModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClass {
* @return string Hyperlink with icon and appropriate JavaScript
*/
protected function openInNewWindow() {
$url = \TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('TYPO3_REQUEST_SCRIPT');
$url = \TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('TYPO3_REQUEST_URL');
$onClick = ('devlogWin=window.open(\'' . $url) . '\',\'taskcenter\',\'width=790,status=0,menubar=1,resizable=1,location=0,scrollbars=1,toolbar=0\');return false;';
$content = ((((((('<a href="#" onclick="' . htmlspecialchars($onClick)) . '">') . '<img') . \TYPO3\CMS\Backend\Utility\IconUtility::skinImg($GLOBALS['BACK_PATH'], 'gfx/open_in_new_window.gif', 'width="19" height="14"')) . ' title="') . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.openInNewWindow', 1)) . '" class="absmiddle" alt="" />') . '</a>';
return $content;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment