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

Boolean checkboxSwitch properties are not converted properly

    XMLWordPrintable

Details

    Description

      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" />
      

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD