[BUGFIX] Add missing element description field to form editor 19/56119/2
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:47:59 +0000 (22:47 +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/56119
Tested-by: TYPO3com <no-reply@typo3.com>
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 1763dc3..fc885df 100644 (file)
@@ -311,6 +311,7 @@ TYPO3:
                 editors:
                   200:
                     label: 'formEditor.elements.Fieldset.editor.label.label'
+                  230: null
                   800: null
 
             GridContainer:
@@ -322,6 +323,7 @@ TYPO3:
                 editors:
                   200:
                     label: 'formEditor.elements.GridContainer.editor.label.label'
+                  230: null
                   800: null
 
             GridRow:
@@ -335,6 +337,7 @@ TYPO3:
                 editors:
                   200:
                     label: 'formEditor.elements.GridRow.editor.label.label'
+                  230: null
                   800: null
 
             ### FORM ELEMENTS: PAGE TYPES ###
@@ -435,6 +438,7 @@ TYPO3:
                 predefinedDefaults:
                   defaultValue: ''
                 editors:
+                  230: null
                   300:
                     identifier: 'defaultValue'
                     templateName: 'Inspector-TextEditor'
@@ -891,6 +895,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 15e17b4..c7bdfc6 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>