[MGNLUI-3078] Checkbox in CompositeFieldDefinition in MultiValueFieldDefinition does not update its value Created: 24/Jul/14  Updated: 05/Dec/14  Resolved: 18/Aug/14

Status: Closed
Project: Magnolia UI
Component/s: app framework, content app
Affects Version/s: 5.3.1
Fix Version/s: 5.2.9, 5.3.3

Type: Bug Priority: Critical
Reporter: Adi De Masi Assignee: Eric Hechinger
Resolution: Fixed Votes: 0
Labels: quickwin
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Bildschirmfoto 2014-07-24 um 16.21.02.png     PNG File Screen Shot 2014-08-18 at 09.19.27.png    
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   

In a content-app I have multivalue field where one field is a CompositeField with a Text-Field (or other fields) and a Checkbox.

When I initially add one Field, set the Text-Field and check the Textbox and save the form both values get stored. However, if edit this Node again and disable the checkbox, the new value of the checkbox is not stored.

If I only change the textfield, the text-field's value is stored.

If I change both textfield and checkbox, both values are stored.



 Comments   
Comment by Eric Hechinger [ 18/Aug/14 ]

Quick solution:
Magnolia 5.3 introduced two new transformers :

  • info.magnolia.ui.form.field.transformer.multi.DelegatingMultiValueFieldTransformer
  • info.magnolia.ui.form.field.transformer.composite.DelegatingCompositeFieldTransformer
    that solved many issues and limitations (i18n, chaining of fields) of the previous transformers.

With this two transformers you can now have a multi-field, that contains a composite-field, that may have another multi-field.....
(see screen shot for the equivalent field definition using the new transformers)

Comment by Eric Hechinger [ 18/Aug/14 ]

equivalent field with the new transformers

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