Follow-up to bugfix #12271: List module and Clickmenu should not enable to create...
authorSteffen Kamper <info@sk-typo3.de>
Mon, 23 Nov 2009 18:27:51 +0000 (18:27 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Mon, 23 Nov 2009 18:27:51 +0000 (18:27 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6500 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/alt_clickmenu.php

index 13a20fc..aec45d3 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,7 @@
 
 2009-11-23  Steffen Kamper  <info@sk-typo3.de>
 
+       * Follow-up to bugfix #12271: List module and Clickmenu should not enable to create inconsistant record-relations (thanks to Tolleiv Nietsch)
        * Fixed bug #12544: Clean markup in Extension Manager
        * Fixed bug #12508: Log usage of XLLfile to deprecation log (thanks to Steffen Gebert)
        * Follow-up to bugfix #11468: $altUrl parameter has no effect in t3lib_BEfunc::viewOnClick()
index 814dd23..8e2fcae 100644 (file)
@@ -266,9 +266,10 @@ class clickMenu {
                if ($table=='pages' && in_array($uid,$GLOBALS['BE_USER']->returnWebmounts()))   {       // DB mount
                        $DBmount = TRUE;
                }
-
+                       // used to hide cut,copy icons for l10n-records
                $l10nOverlay = false;
-               if ($table != 'pages_language_overlay' && array_key_exists('transOrigPointerField', $TCA[$table]['ctrl'])) {
+                       // should only be performed for overlay-records within the same table
+               if (t3lib_BEfunc::isTableLocalizable($table) && !isset($TCA[$table]['ctrl']['transOrigPointerTable'])) {
                        $l10nOverlay = intval($this->rec[$TCA[$table]['ctrl']['transOrigPointerField']]) != 0;
                }