Actions
Bug #60171
closedRecursive content crashes with Text / Pics element
Start date:
2014-07-08
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.4
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
For a single page, I needed to display the content of pages and subpages with this TS code :
lib.single_page = CONTENT lib.single_page { table = pages select.orderBy = sorting renderObj = COA renderObj { 10 = CONTENT 10 { table = tt_content select { pidInList.field = uid } wrap = | } 20 = CONTENT 20{ table = pages select{ pidInList.field = uid } renderObj = COA renderObj{ 10 = CONTENT 10 { table = tt_content select { pidInList.field = uid } wrap = | } } } } }
It works fine, but it crashes only when a text/pic element is found in a subpage (in the "20.10" of the COA).
I patch the problem changing the line 727 in /typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php :
if (is_array($old_conf) && count($old_conf)) {
with this line :
if (is_array($old_conf) && count($old_conf) && !empty($conf)) {
But there is maybe a better solution :)
Actions