[BUGFIX] Avoid usage of subheader in mailform 91/22391/3
authorFrancois Suter <francois@typo3.org>
Wed, 17 Jul 2013 20:07:01 +0000 (22:07 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Wed, 14 Aug 2013 17:12:48 +0000 (19:12 +0200)
Since TYPO3 CMS 4.7 the subheader field is rendered by lib.stdheader
if the chosen doctype is HTML 5. However the old mailform (ab)uses this
field for storing the recipient e-mail address. The subheader must
not be displayed in this case.

Resolves: #46094
Releases: 6.2, 6.1, 6.0, 4.7
Change-Id: I19d13e65b941e2514a9c4a12cb37f015661e9d8f
Reviewed-on: https://review.typo3.org/22391
Reviewed-by: Jo Hasenau
Tested-by: Jo Hasenau
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/css_styled_content/static/setup.txt
typo3/sysext/css_styled_content/static/v4.7/setup.txt
typo3/sysext/css_styled_content/static/v6.0/setup.txt
typo3/sysext/css_styled_content/static/v6.1/setup.txt
typo3/sysext/form/Configuration/TypoScript/setup.txt

index 03bd363..7a50d00 100644 (file)
@@ -285,6 +285,13 @@ lib.stdheader {
                        }
                        value = html5
                        equals.data = TSFE:config|config|doctype
+                       # Hide subheader for old style form element (it is used for recipient mail)
+                       isFalse = 0
+                       isFalse.override = 1
+                       isFalse.override {
+                               if.equals.field = CType
+                               if.value = mailform
+                       }
                }
        }
 
index e4a5e5e..6b3e3f4 100644 (file)
@@ -296,6 +296,13 @@ lib.stdheader {
                        }
                        value = html5
                        equals.data = TSFE:config|config|doctype
+                       # Hide subheader for old style form element (it is used for recipient mail)
+                       isFalse = 0
+                       isFalse.override = 1
+                       isFalse.override {
+                               if.equals.field = CType
+                               if.value = mailform
+                       }
                }
        }
 
index c563eb7..19acef7 100644 (file)
@@ -296,6 +296,13 @@ lib.stdheader {
                        }
                        value = html5
                        equals.data = TSFE:config|config|doctype
+                       # Hide subheader for old style form element (it is used for recipient mail)
+                       isFalse = 0
+                       isFalse.override = 1
+                       isFalse.override {
+                               if.equals.field = CType
+                               if.value = mailform
+                       }
                }
        }
 
index 7aa8d8e..2bf97ef 100644 (file)
@@ -296,6 +296,13 @@ lib.stdheader {
                        }
                        value = html5
                        equals.data = TSFE:config|config|doctype
+                       # Hide subheader for old style form element (it is used for recipient mail)
+                       isFalse = 0
+                       isFalse.override = 1
+                       isFalse.override {
+                               if.equals.field = CType
+                               if.value = mailform
+                       }
                }
        }
 
index efaf893..37b31f0 100644 (file)
@@ -1,3 +1,7 @@
+# Cancel the check that prevents display of subheader for old mailform
+tt_content.mailform.10.20.if.isFalse.override = 0
+
+# Replace rendering of old mailform
 tt_content.mailform.20 >
 tt_content.mailform.20 = FORM
 tt_content.mailform.20 {