Skip to content

Commit

Permalink
Add an onError condition to handle cases where the global property do…
Browse files Browse the repository at this point in the history
…es not exist so throws an error due to the null value (#570)

* Upgrade coreapps to 1.31.0 which has a fix for the issues displaying of the viral load widget using the obs across encounters widget

* Add an onError condition to handle cases where the global property does not exist so throws an error due to the null value

* Remove the default number of patients per day to blank
  • Loading branch information
ssmusoke authored Dec 2, 2020
1 parent 307671e commit ad26e4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion api/src/main/resources/liquibase.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
for a list of supported elements and attributes
-->
<changeSet id="ugandaemr-27112020-1441" author="ssmusoke">
<preConditions onFail="MARK_RAN">
<preConditions onFail="MARK_RAN" onError="MARK_RAN">
<sqlCheck expectedResult="100">
SELECT property_value
FROM global_property
Expand All @@ -19,6 +19,7 @@
<comment>Reset maximum patients per day value to blank which is unlimited</comment>
<sql>UPDATE global_property SET property_value = '' WHERE property = 'ugandaemr.maximumPatientsPerDay'</sql>
</changeSet>

<changeSet id="ugandaemr-05092018-1043" author="ssmusoke">
<comment>Fix bad data for the ART care section which is causing an error when saving the summary page</comment>
<sql>
Expand Down
2 changes: 1 addition & 1 deletion omod/src/main/resources/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
<globalProperty>
<property>ugandaemr.maximumPatientsPerDay</property>
<description>The maxiumum number of patients that can have appointments on a single day</description>
<defaultValue>100</defaultValue>
<defaultValue></defaultValue>
</globalProperty>

<globalProperty>
Expand Down

0 comments on commit ad26e4f

Please sign in to comment.