Bug #81619
openstdWrap_override does not override the current value if new value is "0"
0%
Description
IS STATE
EXT:sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php::stdWrap_override does not override $content
variable with a value, if this new value consists of a single symbol "0". This is for example necessary, if a result of TypoScript condition should be overriden.
SHOULD STATE
It should be at least possible to override the existing TypoScript content with a string containing a single symbol "0".
Further considerations
It must be also considered, whether every content presenting in $conf['override']
should be taken as replacement. In case, if overriding should not occur due to appropriate override condition, than $conf['override']
key can be completely removed from $conf
array. The only test, if the content is to be overridden can then be alone the existence of $conf['override']
.
Updated by Gleb Levitin over 7 years ago
- Target version changed from next-patchlevel to Candidate for patchlevel
- Complexity set to medium
Updated by Gleb Levitin over 7 years ago
- Related to Task #76741: Add unit test to cover stdWrap_override added