Bug #82243
closedAdding properties to "fluidAdditionalAttributes" in form definition leads to lost properties
100%
Description
I got the following problem.
I have a custom form element definition in my form configuration:
CustomEmail:
__inheritances:
10: 'TYPO3.CMS.Form.prototypes.standard.formElementsDefinition.Text'
renderingOptions:
templateName: 'Text'
label: 'Email'
defaultValue: ''
properties:
fluidAdditionalAttributes:
placeholder: Email
elementClassAttribute: 'email'
validators:
-
identifier: NotEmpty
-
identifier: EmailAddress
Normally I'm using it like this in one of my form definitions:
-
type: CustomEmail
identifier: email
This does work fine.
Then I'm trying to add a property to "fluidAdditionalAttributes" in another form definition like so (in this case the email field should be required):
-
type: CustomEmail
identifier: email
properties:
fluidAdditionalAttributes:
required: required
This leads me to an added "required" property in the frontend rendering but the "placeholder" property defined in the form configuration for my "CustomEmail" type is gone.
Updated by Gerrit Code Review about 7 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54124
Updated by Gerrit Code Review almost 7 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54124
Updated by Gerrit Code Review almost 7 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54124
Updated by Gerrit Code Review almost 7 years ago
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54964
Updated by Ralf Zimmermann almost 7 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 3af061457707afbdbbc80997a669de35a103bbaa.