← Back to team overview

dhis2-devs team mailing list archive

[Bug 1330056] [NEW] program validation comparing numbers like string

 

Public bug reported:

Hi Devs

The tracker program validation for numbers is comparing numbers using
string logic. If you have a validation rule such as a < b, the system
results are as follows

a = 20,000

b = 100,000

Validation fails (because it compares  2 and 1)

a= 20,000
b= 300,000


I have attached a screenshot for reference.

Thanks

Busoye

Version:
2.15
Build revision:
15081

** Affects: dhis2
     Importance: Undecided
         Status: New

** Attachment added: "Incorrect Validation Result.tiff"
   https://bugs.launchpad.net/bugs/1330056/+attachment/4131380/+files/Incorrect%20Validation%20Result.tiff

** Summary changed:

- program validation comparing numbers like text
+ program validation comparing numbers like string

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1330056

Title:
  program validation comparing numbers like string

Status in DHIS 2:
  New

Bug description:
  Hi Devs

  The tracker program validation for numbers is comparing numbers using
  string logic. If you have a validation rule such as a < b, the system
  results are as follows

  a = 20,000

  b = 100,000

  Validation fails (because it compares  2 and 1)

  a= 20,000
  b= 300,000

  
  I have attached a screenshot for reference.

  Thanks

  Busoye

  Version:
  2.15
  Build revision:
  15081

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1330056/+subscriptions


Follow ups

References