Project

General

Profile

Actions

Bug #26867

closed

content FORM: wrong layout for label

Added by Alexander Claes over 13 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Content Rendering
Target version:
Start date:
2011-05-17
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #23981: Optimize stdWrap usage for TypoScript content element FORMClosedSteffen Kamper2010-11-07

Actions
Actions

Also available in: Atom PDF