[BUGFIX] Unset stdWrap of select.pidInList
authorMarc Bastian Heinrichs <heinrichs@mbh-web.de>
Fri, 2 Dec 2011 15:23:20 +0000 (16:23 +0100)
committerSusanne Moog <typo3@susannemoog.de>
Sun, 11 Mar 2012 18:08:36 +0000 (19:08 +0100)
Using stdWrap features on select.pidInList together with slide will
result in an endless loop because the same parentPids are
selected over and over again till the max execution time is reached.

This patch unsets the stdWrap properties after the first run.

Change-Id: Ib5c3bcbb1618026af1769ccc2c7dfb1e86a26477
Fixes: #28526
Releases: 4.4, 4.5, 4.6, 4.7
Reviewed-on: http://review.typo3.org/8944
Reviewed-by: Sebastian Michaelsen
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
Reviewed-by: Sebastian Fischer
Reviewed-by: Susanne Moog
Tested-by: Susanne Moog
typo3/sysext/cms/tslib/content/class.tslib_content_content.php

index dedf0be..7d8dd69 100644 (file)
@@ -159,6 +159,9 @@ class tslib_content_Content extends tslib_content_Abstract {
                                                $slide--;
                                        }
                                        $conf['select.']['pidInList'] = $this->cObj->getSlidePids($conf['select.']['pidInList'], $conf['select.']['pidInList.']);
+                                       if (isset($conf['select.']['pidInList.'])) {
+                                               unset($conf['select.']['pidInList.']);
+                                       }
                                        $again = strlen($conf['select.']['pidInList']) ? TRUE : FALSE;
                                }
                        } while ($again && (($slide && !strlen($tmpValue) && $slideCollectFuzzy) || ($slide && $slideCollect)));