[BUGFIX] Render correct colPos in section menus again 46/46746/2
authorDaniel Goerz <ervaude@gmail.com>
Wed, 17 Feb 2016 12:31:12 +0000 (13:31 +0100)
committerAndreas Fernandez <typo3@scripting-base.de>
Wed, 17 Feb 2016 15:24:50 +0000 (16:24 +0100)
Resolves: #73521
Related: #71733
Releases: master, 7.6
Change-Id: Iddaea99304a3ab2ae69153a4da12c210adeda6f1
Reviewed-on: https://review.typo3.org/46746
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/fluid_styled_content/Classes/ViewHelpers/Menu/SectionViewHelper.php

index d02e89b..3826b28 100644 (file)
@@ -108,7 +108,7 @@ class SectionViewHelper extends AbstractViewHelper
         $constraints = [];
         if (trim($column) !== '') {
             $colPosList = implode(',', GeneralUtility::intExplode(',', $column, true));
-            $constraints[] = 'colPos IN(' . ($colPosList !== '' ?: '0') . ')';
+            $constraints[] = 'colPos IN(' . ($colPosList !== '' ? $colPosList : '0') . ')';
         }
 
         switch ($type) {