From 0519429ddefebe0bae213f47dbd6d0fe54cc47c7 Mon Sep 17 00:00:00 2001 From: Michael Fritz Date: Fri, 18 Jul 2014 14:44:26 +0200 Subject: [PATCH] HOTFIX: Wrong sorting --- .../typo3/sysext/backend/Classes/View/PageLayoutView.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/typo3/typo3_src-6.2.4/typo3/sysext/backend/Classes/View/PageLayoutView.php b/typo3/typo3_src-6.2.4/typo3/sysext/backend/Classes/View/PageLayoutView.php index 5d49fc8..02d4ef9 100644 --- a/typo3/typo3_src-6.2.4/typo3/sysext/backend/Classes/View/PageLayoutView.php +++ b/typo3/typo3_src-6.2.4/typo3/sysext/backend/Classes/View/PageLayoutView.php @@ -576,6 +576,14 @@ class PageLayoutView extends \TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRe ); } } + + //Resort $languageColumn like $cList. $languageColumn[key] can be prefilled with content elements, so it exists before. so the sorting is confused. + $resortLanguageColumn = array(); + foreach ($cList as $key) { + $resortLanguageColumn[$key] = $languageColumn[$key]; + } + $languageColumn = $resortLanguageColumn; + } else { $backendLayout = $this->getBackendLayoutView()->getSelectedBackendLayout($this->id); // GRID VIEW: -- 1.8.4.2