[BUGFIX] content FORM: wrong layout for label
authorMarkus Klein <klein.t3@mfc-linz.at>
Tue, 17 May 2011 20:11:30 +0000 (22:11 +0200)
committerSteffen Gebert <steffen.gebert@typo3.org>
Sat, 4 Jun 2011 22:30:58 +0000 (00:30 +0200)
Layout configuration of FORM fields with type LABEL is taken from type
CHECK when no stdWrap options are defined.
Thanks to Alexander Claes for this fix.

Change-Id: Ie9d6328fde25736fea15c1a7acc4ed2a7b08dba2
Resolves: #26867
Releases: 4.6, 4.5
Reviewed-on: http://review.typo3.org/2525
Reviewed-by: Steffen Gebert
Tested-by: Steffen Gebert
typo3/sysext/cms/tslib/content/class.tslib_content_form.php

index 5f5b437..ce2abb1 100644 (file)
@@ -684,7 +684,7 @@ class tslib_content_Form extends tslib_content_Abstract {
                                        if ($confData['type'] == 'label') {
                                                $labelLayout = isset($conf['LABEL.']['layout.'])
                                                        ? $this->cObj->stdWrap($conf['LABEL.']['layout'], $conf['LABEL.']['layout.'])
-                                                       : $conf['CHECK.']['layout'];
+                                                       : $conf['LABEL.']['layout'];
                                                if ($labelLayout) {
                                                        $result = $labelLayout;
                                                }