Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-18161

Changing a user properties that takes a boolean fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Solved By
    • Major
    • None
    • 12.2
    • User
    • None
    • Unknown
    • N/A
    • N/A

    Description

      To reproduce:

      {{velocity}}
      #set ($props = $services.user.properties)
      #set ($discard = $props.setFirstName('David1'))
      #set ($discard = $props.setDisplayHiddenDocuments(false))
      #set ($discard = $props.save())
      {{/velocity}}
      

      The issue is that we're trying to set a boolean into a xproperty number field (0 = false, 1 = true). We need to perform the conversion.

      Attachments

        Issue Links

          Activity

            People

              vmassol Vincent Massol
              vmassol Vincent Massol
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: