EyeSeeTea / dhis2-android-capture-app-psi-fork

PSI fork of official UiO Android app (blessed repository)
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

PR error in 2.33.5 server (possible bug?) #19

Closed nancyespinoza closed 2 years ago

nancyespinoza commented 3 years ago

Hi Ignacio!

There is a server in which the hide field rules are not working. I think that the problem is with the server and not with the app but could you please confirm this?

Credentials: Server: https://dev.imdatahub.org User: hnqis.test Password: Solar123!

Steps to follow:

  1. Log in
  2. In the "XX IM HNQIS2 - HF Readiness" program create or open any Assessment
  3. Create an Assessment stage
  4. In section 2 "General information" Select "No" to the question "Add another Staff?"

The expected behavior is that all the remaining questions in the section should hide.

ifoche commented 3 years ago

@nancyespinoza we've checked it and it seems that there are issues with the configuration of some PRs. Concretely there are errors with program rule conditions, where program rule variables of calculated value type have not value, e.g:

Program rule variables CV_CS10,CV_CS3,CV_CS5,CV_CS6,CV_CS8,CV_CS9 seem not to have a value, so the condition fail to divide 0/100 or nan/100.

We think these conditions in the program rule actions should be changed to verify previously if the variable has value before executing the division operation, or the failure may be before that. Could you please confirm that it helps to identify the configuration error?