[BUGFIX] EXT:form - handling of missing type attribute 49/45349/4
authorRalf Zimmermann <ralf.zimmermann@tritum.de>
Fri, 18 Dec 2015 12:47:53 +0000 (13:47 +0100)
committerBenni Mack <benni@typo3.org>
Wed, 23 Dec 2015 09:29:53 +0000 (10:29 +0100)
Render default "type" attribute if not set by configuration.
Relates to the elements BUTTONTAG, INPUT and TEXTFIELD

Resolves: #71921
Releases: master, 7.6
Change-Id: If505ad401e36eb51dc4d81538b1fcca97ec982c8
Reviewed-on: https://review.typo3.org/45349
Tested-by: Bjoern Jacob <bjoern.jacob@tritum.de>
Reviewed-by: Bjoern Jacob <bjoern.jacob@tritum.de>
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Tested-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/form/Configuration/TypoScript/Elements/Buttontag.ts
typo3/sysext/form/Configuration/TypoScript/Elements/Input.ts
typo3/sysext/form/Configuration/TypoScript/Elements/Textline.ts

index dad220c..a4ce6f5 100644 (file)
@@ -98,6 +98,15 @@ plugin.tx_form {
                                        130 = type
                                }
 
+                                       # defaultHtmlAttributeValues
+                                       # Used by: frontend, wizard (not implemented right now)
+                                       # Overwritable by user: FALSE
+                                       #
+                                       # The following values are automatically set if there is no entry in the user configured element.
+                               defaultHtmlAttributeValues {
+                                       type = button
+                               }
+
                                        # partialPath
                                        # Used by: frontend, wizard (not implemented right now)
                                        # Overwritable by user: TRUE
index 440c417..03017f1 100644 (file)
@@ -121,6 +121,15 @@ plugin.tx_form {
                                        180 = type
                                }
 
+                                       # defaultHtmlAttributeValues
+                                       # Used by: frontend, wizard (not implemented right now)
+                                       # Overwritable by user: FALSE
+                                       #
+                                       # The following values are automatically set if there is no entry in the user configured element.
+                               defaultHtmlAttributeValues {
+                                       type = text
+                               }
+
                                        # partialPath
                                        # Used by: frontend, wizard (not implemented right now)
                                        # Overwritable by user: TRUE
index 3ce3732..0951d0e 100644 (file)
@@ -113,6 +113,15 @@ plugin.tx_form {
                                        180 = type
                                }
 
+                                       # defaultHtmlAttributeValues
+                                       # Used by: frontend, wizard (not implemented right now)
+                                       # Overwritable by user: FALSE
+                                       #
+                                       # The following values are automatically set if there is no entry in the user configured element.
+                               defaultHtmlAttributeValues {
+                                       type = text
+                               }
+
                                        # partialPath
                                        # Used by: frontend, wizard (not implemented right now)
                                        # Overwritable by user: TRUE