[BUGFIX] Add missing element description field to form editor 16/56116/4
authorBenjamin Kott <benjamin.kott@wfp2.com>
Mon, 12 Mar 2018 17:47:23 +0000 (18:47 +0100)
committerSusanne Moog <susanne.moog@typo3.org>
Mon, 12 Mar 2018 21:34:33 +0000 (22:34 +0100)
To avoid the unsetting of previously set element descriptions for
input fields in the form editor, the field elementDescription was
added to all supported element types and is now available to editors.

Resolves: #84225
Releases: master, 8.7
Change-Id: Ide68a1fc95670d98df4e243436e93aa812bf9290
Reviewed-on: https://review.typo3.org/56116
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
typo3/sysext/form/Configuration/Yaml/FormEditorSetup.yaml
typo3/sysext/form/Resources/Private/Language/Database.xlf

index d01e278..e6291ef 100644 (file)
@@ -339,6 +339,7 @@ TYPO3:
                 editors:
                   200:
                     label: 'formEditor.elements.Fieldset.editor.label.label'
+                  230: null
                   800: null
 
             GridContainer:
@@ -350,6 +351,7 @@ TYPO3:
                 editors:
                   200:
                     label: 'formEditor.elements.GridContainer.editor.label.label'
+                  230: null
                   800: null
 
             GridRow:
@@ -363,6 +365,7 @@ TYPO3:
                 editors:
                   200:
                     label: 'formEditor.elements.GridRow.editor.label.label'
+                  230: null
                   800: null
 
             ### FORM ELEMENTS: PAGE TYPES ###
@@ -463,6 +466,7 @@ TYPO3:
                 predefinedDefaults:
                   defaultValue: ''
                 editors:
+                  230: null
                   300:
                     identifier: 'defaultValue'
                     templateName: 'Inspector-TextEditor'
@@ -1054,6 +1058,12 @@ TYPO3:
                 200:
                   label: 'formEditor.elements.FormElement.editor.label.label'
 
+                230:
+                  identifier: 'elementDescription'
+                  templateName: 'Inspector-TextEditor'
+                  label: 'formEditor.elements.FormElement.editor.elementDescription.label'
+                  propertyPath: 'properties.elementDescription'
+
                 700:
                   identifier: 'gridColumnViewPortConfiguration'
                   templateName: 'Inspector-GridColumnViewPortConfigurationEditor'
index 3d12b67..ba2039a 100644 (file)
             <trans-unit id="formEditor.elements.FormElement.editor.label.label" xml:space="preserve">
                 <source>Label</source>
             </trans-unit>
+            <trans-unit id="formEditor.elements.FormElement.editor.elementDescription.label" xml:space="preserve">
+                <source>Description</source>
+            </trans-unit>
             <trans-unit id="formEditor.elements.FormElement.editor.requiredValidator.label" xml:space="preserve">
                 <source>Required field</source>
             </trans-unit>