[+BUGFIX] Extbase (Persistence): Fixed a problem where localized objects inside an...
authorJochen Rau <j.rau@web.de>
Thu, 1 Jul 2010 18:34:46 +0000 (18:34 +0000)
committerJochen Rau <j.rau@web.de>
Thu, 1 Jul 2010 18:34:46 +0000 (18:34 +0000)
typo3/sysext/extbase/Classes/Persistence/Storage/Typo3DbBackend.php

index c73e25f..b3dd0da 100644 (file)
@@ -938,7 +938,7 @@ class Tx_Extbase_Persistence_Storage_Typo3DbBackend implements Tx_Extbase_Persis
                        if ($source instanceof Tx_Extbase_Persistence_QOM_SelectorInterface) {
                                $tableName = $source->getSelectorName();
                        } elseif ($source instanceof Tx_Extbase_Persistence_QOM_JoinInterface) {
-                               $tableName = $source->getLeft()->getSelectorName();
+                               $tableName = $source->getRight()->getSelectorName();
                        }
                        $this->pageSelectObject->versionOL($tableName, $row, TRUE);
                        if(isset($GLOBALS['TCA'][$tableName]['ctrl']['languageField']) && $GLOBALS['TCA'][$tableName]['ctrl']['languageField'] !== '') {