[MGNLUI-6117] Autocreated apps set required=false to fields that do not have such property Created: 05/Aug/20  Updated: 25/Feb/22

Status: Accepted
Project: Magnolia UI
Component/s: None
Affects Version/s: 6.2.2
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Bartosz Staryga Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File tour.yaml     File tours.yaml    
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

When using auto creation of content apps, and decorating the app to use multi value filed the minor issue in Def app is shown:

Property [required] not found in class [info.magnolia.ui.field.JcrMultiValueFieldDefinition], property is not assigned

Title: Source data processing problem
Path: tours/subApps/detail/form/{name=name, i18n=true, label=Name, required=true, $type=textField, type=java.lang.String}/tourTypes

Auto creating apps always adds the required filed (false/true) and this seems to be not supprted yet with multi value fileds.

 



 Comments   
Comment by Šimon Demočko [ 19/Feb/21 ]

Hi, so when it is not required, it automatically adds "required: false" for that?

> Auto creating apps always adds the required filed (false/true) and this seems to be not supprted yet with multi value fileds.

Is this still the case? detailTemplate.ftl does not seem to do that for multi fields, if you check where "required" is mentioned it's not there for the multi part.

Generated at Mon Feb 12 09:33:19 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.