#38249TSConfig: t3lib_befunc::getTCEFORM_TSconfig() not considering non-array values when building conf
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)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.