#26867content FORM: wrong layout for label
Description
Please have a look at this snippet from TYPO3 4.5.2:
file: /typo3/sysext/cms/tslib/content/class.tslib_content_form.php
line: 685 – 691
if ($confData['type'] == 'label') {
$labelLayout = isset($conf['LABEL.']['layout.'])
? $this->cObj->stdWrap($conf['LABEL.']['layout'], $conf['LABEL.']['layout.'])
: $conf['CHECK.']['layout'];
if ($labelLayout) {
$result = $labelLayout;
}
}
You can find a bug here. Within a content element of the type FORM a field defined als “label” will have the layout of “check”. Fix: change line 687
from
: $conf[‘CHECK.’][‘layout’];
to
: $conf[‘LABEL.’][‘layout’];
Greetings