Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-5084

DialogButtonSet do not handle saveInfo for hiddenField correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 4.5.12
    • 4.5
    • None
    • None

    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());

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                ltkadlcik Luboš Tkadlčík
                fateidrees Fatha Idrees
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD