[BUGFIX] Assign elementErrorClassAttribute to ImageUpload and FileUpload element 63/56063/3
authorBenjamin Kott <benjamin.kott@wfp2.com>
Thu, 8 Mar 2018 15:16:21 +0000 (16:16 +0100)
committerSusanne Moog <susanne.moog@typo3.org>
Thu, 8 Mar 2018 16:15:36 +0000 (17:15 +0100)
Resolves: #84181
Releases: master, 8.7
Change-Id: If55767b54071809e9622f9c29829bf4a76c66409
Reviewed-on: https://review.typo3.org/56063
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
typo3/sysext/form/Resources/Private/Frontend/Partials/FileUpload.html
typo3/sysext/form/Resources/Private/Frontend/Partials/ImageUpload.html

index 5a329ad..e115f68 100644 (file)
@@ -6,6 +6,7 @@
                        as="resource"
                        id="{element.uniqueIdentifier}"
                        class="{element.properties.elementClassAttribute}"
+                       errorClass="{element.properties.elementErrorClassAttribute}"
                        additionalAttributes="{formvh:translateElementProperty(element: element, property: 'fluidAdditionalAttributes')}"
                        accept="{element.properties.allowedMimeTypes}"
                >
index aa98b9a..744110b 100644 (file)
@@ -5,6 +5,7 @@
                        property="{element.identifier}"
                        as="image"
                        id="{element.uniqueIdentifier}"
+                       errorClass="{element.properties.elementErrorClassAttribute}"
                        additionalAttributes="{formvh:translateElementProperty(element: element, property: 'fluidAdditionalAttributes')}"
                        accept="{element.properties.allowedMimeTypes}"
                >