[BUGFIX] EXT:form - fix missing id attribute 64/53964/2
authorprotos <cm@davitec.de>
Thu, 7 Sep 2017 15:33:32 +0000 (17:33 +0200)
committerSusanne Moog <susanne.moog@typo3.org>
Thu, 7 Sep 2017 18:34:16 +0000 (20:34 +0200)
Insert missing id attribute for image and file upload element.

Resolves: #82223
Releases: master, 8.7
Change-Id: Ia88cda2db1eda1ce6dab0678052e089184d8b0cd
Reviewed-on: https://review.typo3.org/53964
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Ralf Zimmermann <ralf.zimmermann@tritum.de>
Tested-by: Ralf Zimmermann <ralf.zimmermann@tritum.de>
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 6f59be7..6f0684c 100644 (file)
@@ -4,6 +4,7 @@
                <formvh:form.uploadedResource
                        property="{element.identifier}"
                        as="resource"
+                       id="{element.uniqueIdentifier}"
                        additionalAttributes="{formvh:translateElementProperty(element: element, property: 'fluidAdditionalAttributes')}"
                        accept="{element.properties.allowedMimeTypes}"
                >
index 9cea3b7..aa98b9a 100644 (file)
@@ -4,6 +4,7 @@
                <formvh:form.uploadedResource
                        property="{element.identifier}"
                        as="image"
+                       id="{element.uniqueIdentifier}"
                        additionalAttributes="{formvh:translateElementProperty(element: element, property: 'fluidAdditionalAttributes')}"
                        accept="{element.properties.allowedMimeTypes}"
                >