[BUGFIX] Fix failing unit tests
authorAnja Leichsenring <aleichsenring@ab-softlab.de>
Sat, 27 Apr 2013 09:55:11 +0000 (11:55 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Sat, 27 Apr 2013 10:43:25 +0000 (12:43 +0200)
During cleanup an additional space was introduced in the whereClause
in \TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::
addSysLanguageStatement, causing three unit tests to fail.

Fixes: #47636
Related: #47216
Releases: 6.2, 6.1
Change-Id: Ia5177a33074b7543095c780a5274faac172a7d75
Reviewed-on: https://review.typo3.org/20209
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php

index daa8e41..bdca5e0 100644 (file)
@@ -1027,8 +1027,8 @@ class Typo3DbBackend implements \TYPO3\CMS\Extbase\Persistence\Generic\Storage\B
                                if (isset($GLOBALS['TCA'][$tableName]['ctrl']['transOrigPointerField'])
                                        && $querySettings->getSysLanguageUid() > 0
                                ) {
-                                       $additionalWhereClause .= ' OR (' . $tableName . '.' . $GLOBALS['TCA'][$tableName]['ctrl']['languageField'] .
-                                               ' =0 AND ' . $tableName . '.uid NOT IN (SELECT ' . $tableName . '.' . $GLOBALS['TCA'][$tableName]['ctrl']['transOrigPointerField'] .
+                                       $additionalWhereClause .= ' OR (' . $tableName . '.' . $GLOBALS['TCA'][$tableName]['ctrl']['languageField'] . '=0' .
+                                               ' AND ' . $tableName . '.uid NOT IN (SELECT ' . $tableName . '.' . $GLOBALS['TCA'][$tableName]['ctrl']['transOrigPointerField'] .
                                                ' FROM ' . $tableName .
                                                ' WHERE ' . $tableName . '.' . $GLOBALS['TCA'][$tableName]['ctrl']['transOrigPointerField'] . '>0' .
                                                ' AND ' . $tableName . '.' . $GLOBALS['TCA'][$tableName]['ctrl']['languageField'] . '>0';