[MAGNOLIA-5084] DialogButtonSet do not handle saveInfo for hiddenField correctly Created: 17/May/13  Updated: 30/Sep/13  Resolved: 06/Sep/13

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: 4.5
Fix Version/s: 4.5.12

Type: Bug Priority: Neutral
Reporter: Fatha Idrees Assignee: Luboš Tkadlčík
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MAGNOLIA-5271 "selected" property not working with ... Closed
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   

The DialogButtonSet do not change the saveInfo value of the hidden field which is created if the ButtonType.Checkbox is selected.

...
...
...
            // checkboxSwitch: value is stored in a hidden field (allows default selecting)
            String value = this.getValue();
            if (StringUtils.isEmpty(value)) {
                if (this.getConfigValue("selected").equals("true")) { //$NON-NLS-1$ //$NON-NLS-2$
                    value = "true"; //$NON-NLS-1$
                }
                else {
                    value = "false"; //$NON-NLS-1$
                }
            }
            Hidden hiddenValueField = new Hidden(this.getName(), value);
            hiddenValueField.setType(type);

...

Missing the Command: hiddenValueField.setSaveInfo(control.getSaveInfo());



 Comments   
Comment by Luboš Tkadlčík [ 06/Sep/13 ]

Added setting saveInfo value of the hidden field

Generated at Mon Feb 12 04:01:50 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.