[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)
committerXavier Perseguers <xavier@typo3.org>
Mon, 24 Oct 2011 18:26:00 +0000 (20:26 +0200)
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: Ib153002ca39953e6c86803a6ed56d1495553fb8c
Resolves: #27052
Releases: 4.4, 4.5, 4.6
Reviewed-on: http://review.typo3.org/4661
Reviewed-by: Björn Pedersen
Reviewed-by: Xavier Perseguers
Reviewed-by: Stefan Neufeind
Tested-by: Xavier Perseguers
typo3/sysext/cms/layout/class.tx_cms_layout.php

index bc2ed36..faef5d7 100755 (executable)
@@ -588,7 +588,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') .
@@ -2656,4 +2656,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
+?>