[BUGFIX] Missing column in t3lib_TCEmain::getPreviousLocalizedRecordUid
[Packages/TYPO3.CMS.git] / t3lib / class.t3lib_tcemain.php
index ab3dad5..530c41a 100644 (file)
@@ -5875,6 +5875,10 @@ class t3lib_TCEmain {
                $previousLocalizedRecordUid = $uid;
                if ($GLOBALS['TCA'][$table] && $GLOBALS['TCA'][$table]['ctrl']['sortby']) {
                        $sortRow = $GLOBALS['TCA'][$table]['ctrl']['sortby'];
+                               // For content elements, we also need the colPos
+                       if ($table === 'tt_content') {
+                               $sortRow .= ',colPos';
+                       }
                                // Get the sort value of the default language record
                        $row = t3lib_BEfunc::getRecord($table, $uid, $sortRow . ',pid,uid');
                        if (is_array($row)) {