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

Don't store empty number fields as 0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9, 1.9.1
    • Fix Version/s: 1.9.2
    • Labels:
      None
    • Database:
      Any
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      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

              • Assignee:
                roal Robert Allerstorfer
                Reporter:
                roal Robert Allerstorfer
                Tester:
                Petr Skoda
                Participants:
                Component watchers:
                Adrian Greeve, Mihail Geshoski, Peter Dias
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  11/Jul/08