Bug #81619

stdWrap_override does not override the current value if new value is "0"

Added by Gleb Levitin 2 months ago. Updated 2 months ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
TypoScript
Start date:
2017-06-19
Due date:
% Done:

0%

TYPO3 Version:
9
PHP Version:
7.0
Tags:
Complexity:
medium
Is Regression:
Sprint Focus:

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'].


Related issues

Related to Core - Task #76741: Add unit test to cover stdWrap_override Resolved 2016-06-22

History

#1 Updated by Gleb Levitin 2 months ago

  • Target version changed from next-patchlevel to Candidate for patchlevel
  • Complexity set to medium

#2 Updated by Gleb Levitin 2 months ago

  • Related to Task #76741: Add unit test to cover stdWrap_override added

Also available in: Atom PDF