Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-24989

Fix 'selectOneRadioDirectory' when used with a boolean property

    XMLWordPrintable

    Details

    • Release Notes Summary:
      The "selectOneRadioDirectory" widget handles the "required" property.
    • Tags:
    • Backlog priority:
      600
    • Sprint:
      nxfit 10.3.6
    • Story Points:
      5

      Description

      In 6.0, using a vocabulary with 2 entries (IDs TRUE and FALSE) used to work with a selectOneRadioDirectory on a boolean property. Since LTS 2015, a validation error The value "TRUE" must be a boolean. is produced.

      How to reproduce:

      • create a Studio vocabulary with 2 entries:
        • id: TRUE
        • id: FALSE
      • define a new document type in Studio with one boolean field
      • in its creation layout, use a Generic widget with:
        • add the xpath of the boolean property in the Fields property
        • set Widget type property to selectOneRadioDirectory
        • set Vocabulary property to the vocabulary created above
        • set Required property to Yes
      • Deploy in a Nuxeo instance
      • in the Nuxeo instance, create an instance of the document type defined above with the radio button for the boolean property set to TRUE or FALSE

      Expected result: the document gets created with the boolean property set to TRUE or FALSE.
      Actual result: a validation error The value "TRUE" must be a boolean. or The value "FALSE" must be a boolean. is displayed under the radio button.

      This is happening since LTS 2015, it was working in 6.0.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 6 hours
                  6h