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

NumberProperty should automatically convert values

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 13.10-rc-1
    • 13.8
    • Old Core
    • None
    • Unit
    • Trivial
    • N/A

    Description

      It's easy to set an int value in an LongProperty without seeing anything wrong about it, but this will crash during save with a very cryptic error. It would be better to make sure in each NumberProperty that they have the right value type by automatically converting them.

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            tmortagne Thomas Mortagne
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: