[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)
committerGeorg Ringer <mail@ringerge.org>
Thu, 2 Jun 2011 05:38:05 +0000 (07:38 +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: I260afc718acaa027a8b2c2636d6c366459e55691
Resolves: #26867
Releases: 4.6, 4.5
Reviewed-on: http://review.typo3.org/2191
Reviewed-by: Christopher
Tested-by: Christopher
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/sysext/cms/tslib/content/class.tslib_content_form.php

index 6a0ca0b..1fbe50b 100644 (file)
@@ -683,7 +683,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;
                                                }