[BUGFIX] Make ContentSlide work correctly if last element is empty 28/32928/3
authorRobert Vock <robert.vock@4wdmedia.de>
Tue, 23 Sep 2014 07:28:18 +0000 (09:28 +0200)
committerMarkus Klein <klein.t3@reelworx.at>
Thu, 23 Oct 2014 00:42:09 +0000 (02:42 +0200)
When using ContentSlide and the last content element in a column returns
an empty string, the slide continues up in the page list, even when
there are other content elements in the column.
Fix this by checking the correct value.

Change-Id: I6543cf2335197ae8510aa8d805d4d60a8d8a2320
Resolves: #51936
Releases: master, 6.2
Reviewed-on: http://review.typo3.org/32928
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Reviewed-by: Benjamin Mack <benni@typo3.org>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/frontend/Classes/ContentObject/ContentContentObject.php

index a93cf4a..dddd02e 100644 (file)
@@ -129,7 +129,7 @@ class ContentContentObject extends \TYPO3\CMS\Frontend\ContentObject\AbstractCon
                                }
                                $again = strlen($conf['select.']['pidInList']) ? TRUE : FALSE;
                        }
-               } while ($again && ($slide && !strlen($tmpValue) && $slideCollectFuzzy || $slide && $slideCollect));
+               } while ($again && ($slide && !strlen($theValue) && $slideCollectFuzzy || $slide && $slideCollect));
 
                $wrap = isset($conf['wrap.']) ? $this->cObj->stdWrap($conf['wrap'], $conf['wrap.']) : $conf['wrap'];
                if ($wrap) {