Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-14788

Don't store empty number fields as 0

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.9, 1.9.1
    • 1.9.2
    • None
    • Any
    • MOODLE_19_STABLE
    • MOODLE_19_STABLE

    Description

      A field of type "number" must allow

      • to be left empty on purpose
      • to be explicitly set to the number 0 (zero)

      Currently, if you add a record that contains number fields, all these fields will implicitly be filled with 0 if they are left empty. Thus, there is no way to distinguish a number being truly 0.00 or empty (non-existent).

      Attachments

        Issue Links

          Activity

            People

              roal Robert Allerstorfer
              roal Robert Allerstorfer
              Petr Skoda Petr Skoda
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11/Jul/08