[BUGFIX] Context menu of page translation doesn't work in languages view
authorAndreas Wolf <andreas.wolf@ikt-werk.de>
Mon, 29 Aug 2011 10:18:17 +0000 (12:18 +0200)
committerStefan Galinski <stefan.galinski@gmail.com>
Tue, 31 Jan 2012 21:26:43 +0000 (22:26 +0100)
For a page with translations, the clickmenu is not shown for these
translations in the page module, view "languages". This comes from a
missing table name in the clickmenu link generation call.

Change-Id: I6a66e0f1e21be072455ecab094d0cfc17c0e5802
Resolves: #27052
Releases: 4.4, 4.5, 4.6
Reviewed-on: http://review.typo3.org/4662
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Wouter Wolters
Reviewed-by: Stefan Galinski
Tested-by: Stefan Galinski
typo3/sysext/cms/layout/class.tx_cms_layout.php

index 2a1d58d..1ed140a 100755 (executable)
@@ -683,7 +683,7 @@ class tx_cms_layout extends recordList {
                                                list($lpRecord) = t3lib_BEfunc::getRecordsByField('pages_language_overlay', 'pid', $id, 'AND sys_language_uid=' . intval($lP));
                                                t3lib_BEfunc::workspaceOL('pages_language_overlay', $lpRecord);
                                                $params = '&edit[pages_language_overlay][' . $lpRecord['uid'] . ']=edit&overrideVals[pages_language_overlay][sys_language_uid]=' . $lP;
-                                               $lPLabel = $GLOBALS['SOBE']->doc->wrapClickMenuOnIcon(t3lib_iconWorks::getSpriteIconForRecord('pages_language_overlay', $lpRecord), $lpRecord['uid']) .
+                                               $lPLabel = $GLOBALS['SOBE']->doc->wrapClickMenuOnIcon(t3lib_iconWorks::getSpriteIconForRecord('pages_language_overlay', $lpRecord), 'pages_language_overlay', $lpRecord['uid']) .
                                                                $viewLink .
                                                                ($GLOBALS['BE_USER']->check('tables_modify', 'pages_language_overlay') ? '<a href="#" onclick="' . htmlspecialchars(t3lib_BEfunc::editOnClick($params, $this->backPath)) . '" title="' . $GLOBALS['LANG']->getLL('edit', TRUE) . '">' .
                                                                                t3lib_iconWorks::getSpriteIcon('actions-document-open') .
@@ -2744,4 +2744,4 @@ if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLA
        include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/cms/layout/class.tx_cms_layout.php']);
 }
 
-?>
\ No newline at end of file
+?>