Skip to content

Commit ad26e4f

Browse files
authored
Add an onError condition to handle cases where the global property does 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
1 parent 307671e commit ad26e4f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

api/src/main/resources/liquibase.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
for a list of supported elements and attributes
1010
-->
1111
<changeSet id="ugandaemr-27112020-1441" author="ssmusoke">
12-
<preConditions onFail="MARK_RAN">
12+
<preConditions onFail="MARK_RAN" onError="MARK_RAN">
1313
<sqlCheck expectedResult="100">
1414
SELECT property_value
1515
FROM global_property
@@ -19,6 +19,7 @@
1919
<comment>Reset maximum patients per day value to blank which is unlimited</comment>
2020
<sql>UPDATE global_property SET property_value = '' WHERE property = 'ugandaemr.maximumPatientsPerDay'</sql>
2121
</changeSet>
22+
2223
<changeSet id="ugandaemr-05092018-1043" author="ssmusoke">
2324
<comment>Fix bad data for the ART care section which is causing an error when saving the summary page</comment>
2425
<sql>

omod/src/main/resources/config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@
180180
<globalProperty>
181181
<property>ugandaemr.maximumPatientsPerDay</property>
182182
<description>The maxiumum number of patients that can have appointments on a single day</description>
183-
<defaultValue>100</defaultValue>
183+
<defaultValue></defaultValue>
184184
</globalProperty>
185185

186186
<globalProperty>

0 commit comments

Comments
 (0)