-
Bug
-
Resolution: Won't Fix
-
Neutral
-
None
-
5.4.5
-
None
If you don't set a label property on the nested field, info.magnolia.ui.form.field.definition.FieldDefinitionKeyGenerator#keysFor fails with NPE since the name of the field is not set. To reproduce:
- /tours/dialogs/components/tourTypeTeaserRow.yaml Remove the label property of the field
- Open tourTypeTeaserRow dialog on the home page.
Caused by: java.lang.NullPointerException at info.magnolia.ui.form.field.definition.FieldDefinitionKeyGenerator.keysFor(FieldDefinitionKeyGenerator.java:64) at info.magnolia.ui.form.field.definition.FieldDefinitionKeyGenerator.keysFor(FieldDefinitionKeyGenerator.java:55)
- info.magnolia.ui.form.field.definition.MultiValueFieldDefinition#getButtonSelectAddLabel/getButtonSelectRemoveLabel should be annotated with @I18nText so we can use auto generated keys.
- Then the translation in info.magnolia.ui.form.field.factory.MultiValueFieldFactory#createFieldComponent should go away.
Acceptance criteria
- relates to
-
MGNLUI-1548 Remove/inline FormItem and related sub-classes
- Closed