Actions
Bug #38249
closedTSConfig: t3lib_befunc::getTCEFORM_TSconfig() not considering non-array values when building conf
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Miscellaneous
Target version:
-
Start date:
2012-06-21
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.6
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:
Description
in t3lib_befunc::getTCEFORM_TSconfig(), non array values are not added to the returned conf array.
Exemple: this TSConfig, set in a page, is not considered nor returned by the method:TCEFORM.tt_content.hello = World
Whereas this one is:TCEFORM.tt_content.hello.dear = World
This is due to the fact that line 3223 if (is_array($val)) {
processes only array values to merge them in the resulting conf array, whiteout counterpart for non-array values (no else).
To fix this, add these instructions at line 3230:
} else { $res[$key] = $val; }
This impacts a lot of things (for me, the inability to set TCEFORM.tt_content._STORAGE_PID from Page TSConfig), and I suspect that many bugs in the BT are related to this (noticeably #30864)
Actions