Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-11506

Number-type custom field saves as 0, even when blank and MySQL default null

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.2.6
    • Fix Version/s: Unscheduled
    • Component/s: None
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)

      Description

      Reproduced on Demo site.

      1. Create a custom data field of type "number". do not set a default value
      2. View a contact, see that number is blank
      3. edit that contact, see that number is blank
      4. save the contact, now the number is "0"

      This doesn't happen for INTEGER fields, only for number fields.

        Attachments

        1. zero1.png
          22 kB
          Stoob
        2. zero2.png
          17 kB
          Stoob
        3. zero3.png
          23 kB
          Stoob

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              stoob Stoob
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: