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

Boolean checkboxSwitch properties are not converted properly

XMLWordPrintable

      If I have a control named hideTitleOnPage and the following properties:

      controlType: checkboxSwitch
      type: Boolean
      

      then the property is effectively saved as a string.

      The problem is probably related to how the generated html looks like:

      <input type="hidden" name="mgnlSaveInfo" value="hideTitleOnPage_SWITCH,Boolean,0,0,0" />
      <input type="hidden" name="hideTitleOnPage" id="hideTitleOnPage" value="true" />
      <input type="hidden" name="mgnlSaveInfo" value="hideTitleOnPage,String,0,0,0" />
      

        Acceptance criteria

              pbaerfuss Philipp Bärfuss
              gjoseph Magnolia International
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD