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

DialogButtonSet do not handle saveInfo for hiddenField correctly

XMLWordPrintable

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

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

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD