← Back to team overview

dhis2-devs team mailing list archive

[Bug 745473] Re: validation-rules-NULL-operands

 

This makes large trouble when the multiple data element involved for comparison like as (A+B+C) > (D+E).
If one of A to E has zero value, this rule has skipped to evaluate on the current version (4015).
Please evaluate all element and skip validation check only when one side have not any non zero value operand.   
So, please make this higher priority to solve.

** Tags added: rule validation

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

Title:
  validation-rules-NULL-operands

Status in DHIS 2 - District Health Information Software:
  New

Bug description:
  I defined a validation rule.. RDT positive cases <= RDT tested cases.
  When the user enters a zero or a blank for the RHS and a value for the
  LHS, the validation rule is passed, which in fact should not be the
  case. Setting the data elements to "Store significant zeroes" solves
  the problem when users enter a zero for the RHS, but it does not solve
  the problem when they leave the field blank.

  I think one possible fix would be that if the value is NULL then it
  should be treated as a zero. This seems to be more or less the
  behaviour elsewhere in DHIS 2.

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


References