Bug #54371
closedProperty "value" of cObject TEXT misses stdWrap
100%
Description
Hello guys,
http://docs.typo3.org/typo3cms/TyposcriptReference/ContentObjects/Text/Index.html
There are no stdWrap-Properties in TEXT-cObject on property value:
public function render($conf = array()) { $content = ''; if (is_array($conf) && isset($conf['value'])) { $content = $conf['value']; unset($conf['value']); } if (count($conf)) { $content = $this->cObj->stdWrap($content, $conf); } return $content; }
Stefan
Updated by Chris topher almost 11 years ago
This is in fact not a mistake in the documentation, but a bug in the system. Before #24063 stdWrap was present also for the aim of issue 24063 was not to remove stdWrap, but to "optimize usage", meaning to optimize the number of calls to the stdWrap function(s). Actually, this and all the other associated issues even did the opposite of removing: They added stdWrap to almost every place. The question whether stdWrap shouldn't then also be present for .value
and.value
, has also been discussed at that time already and as far as I see the result was that the stdWrap should not be missing for .value
. Only has this bug not been fixed yet. Accordingly I'll move this issue to the Core bugtracker for further treatment.
Updated by Chris topher almost 11 years ago
- Subject changed from There are no stdWrap-Probs on value in TEXT-cObject to Property "value" of cOjbect TEXT misses stdWrap
Updated by Chris topher almost 11 years ago
- Project changed from 24 to TYPO3 Core
Updated by Chris topher almost 11 years ago
- Subject changed from Property "value" of cOjbect TEXT misses stdWrap to Property "value" of cObject TEXT misses stdWrap
- PHP Version set to 5.5
- Is Regression set to No
- TYPO3 Version set to 6.1
The fix should be fairly simple: In frontend\Classes\ContentObject\TextContentObject.php, before the stdWrap for $conf, add lines like this
if (isset($conf['value.'])) {
$content = $this->cObj->stdWrap($content, $conf['value.']);
}
Updated by Markus Klein almost 11 years ago
- Category set to TypoScript
- Status changed from New to Accepted
- Assignee set to Markus Klein
- Target version set to next-patchlevel
- TYPO3 Version changed from 6.1 to 6.0
Updated by Gerrit Code Review almost 11 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/26445
Updated by Helmut Hummel almost 11 years ago
Chris topher wrote:
This is in fact not a mistake in the documentation, but a bug in the system. Before #24063 stdWrap was present also for
.value
From reading the code, I doubt, that. .value
never head stdWrap capabilities.
10 = TEXT 10.value.field = header
was never possible and I really ask myself if we need to support that.
The question whether stdWrap shouldn't then also be present for
.value
, has also been discussed at that time already and as far as I see the result was that the stdWrap should not be missing for.value
.
Well, yes. I has been stated that "It makes little sense" but there was agreement to do so and deprecate the HTML element at the same time (which happened indeed).
So fine for this "weird" construct, fix is easy enough.
Updated by Gerrit Code Review almost 11 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/26445
Updated by Gerrit Code Review almost 11 years ago
Patch set 1 for branch TYPO3_6-1 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/27245
Updated by Gerrit Code Review almost 11 years ago
Patch set 1 for branch TYPO3_6-0 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/27246
Updated by Markus Klein almost 11 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 95003e860f33f661edae80f6aa74e6bfc30d6ae0.