[+BUGFIX] Extbase (Persistence): Removed testing code accidentally committed to trunk...
authorJochen Rau <j.rau@web.de>
Thu, 18 Feb 2010 13:59:55 +0000 (13:59 +0000)
committerJochen Rau <j.rau@web.de>
Thu, 18 Feb 2010 13:59:55 +0000 (13:59 +0000)
typo3/sysext/extbase/Classes/Persistence/Mapper/DataMapper.php
typo3/sysext/extbase/Classes/Persistence/Storage/Typo3DbBackend.php

index e01f9ef..5ca4b3f 100644 (file)
@@ -491,7 +491,7 @@ class Tx_Extbase_Persistence_Mapper_DataMapper implements t3lib_Singleton {
                } else {
                        throw new Tx_Extbase_Persistence_Exception_UnexpectedTypeException('Could not determine the child object object type.', 1251315967);
                }
-               return $elementType;    
+               return $elementType;
        }
 
        /**
index 5802fad..6b1a803 100644 (file)
@@ -632,9 +632,6 @@ class Tx_Extbase_Persistence_Storage_Typo3DbBackend implements Tx_Extbase_Persis
                                $statement = substr($statement, 5);
                                $sql['additionalWhereClause'][] = $statement;
                        }
-                       if(isset($GLOBALS['TCA'][$tableName]['ctrl']['languageField']) && $GLOBALS['TCA'][$tableName]['ctrl']['languageField'] != '') {
-                               $sql['additionalWhereClause'][] =  $GLOBALS['TCA'][$tableName]['ctrl']['languageField'] . ' IN (0,-1) ';
-                       }
                }
        }