[MGNLUI-5727] Boolean text field in new framework does not persist value "false" Created: 12/Mar/20  Updated: 10/Mar/21  Resolved: 10/Mar/21

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 6.2
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Šimon Demočko Assignee: Unassigned
Resolution: Workaround exists Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 0.5h
Original Estimate: Not Specified

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:
Epic Link: UI framework implementation

 Description   

Steps to reproduce

  1. Add this field to some dialog definition (e.g. rename action dialog of contacts app)
bool:
 label: boolean text field
 $type: textField
 type: java.lang.Boolean
 converterClass: com.vaadin.data.converter.StringToBooleanConverter

2. Open up the dialog in new framework app (e.g. contacts-v8, you may need to unhide the app [search for hiddenApps in findbar])

3. You will probably see value "false" there already. Persist true

4. Observe in JCR that the property is created with value true.

5. repeat but persist false

Expected results

Property persisted with false value

Actual results

Property removed

 



 Comments   
Comment by Roman Kovařík [ 10/Mar/21 ]

Closing as we can use checkBoxField instead.

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