Follow-up to bugfix #539: Tables that cannot be localized at all produce a SQL error...
authorOliver Hader <oliver.hader@typo3.org>
Wed, 21 Oct 2009 10:26:17 +0000 (10:26 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Wed, 21 Oct 2009 10:26:17 +0000 (10:26 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6213 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tcemain.php

index 4a45e41..a0f3ae7 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,7 @@
 2009-10-21  Oliver Hader  <oliver@typo3.org>
 
        * Cleanup: Updated ext_emconf.php files in system extensions
+       * Follow-up to bugfix #539: Tables that cannot be localized at all produce a SQL error on deleting records
 
 2009-10-21  Steffen Kamper  <info@sk-typo3.de>
 
index b09c2f1..e1ed26d 100644 (file)
@@ -4492,7 +4492,8 @@ class t3lib_TCEmain       {
         * @return      void
         */
        function deleteL10nOverlayRecords($table, $uid) {
-               if (!empty($GLOBALS['TCA'][$table]['ctrl']['transForeignTable'])) {
+                       // Check whether table can be localized or has a different table defined to store localizations:
+               if (!t3lib_BEfunc::isTableLocalizable($table) || !empty($GLOBALS['TCA'][$table]['ctrl']['transForeignTable'])) {
                        return;
                }