Skip to content

Commit

Permalink
fix editing weight not saving
Browse files Browse the repository at this point in the history
fixes #66
  • Loading branch information
Andati committed Mar 30, 2020
1 parent 5982733 commit 1c1c017
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION_NAME=1.1.20-SNAPSHOT
VERSION_NAME=1.1.21-SNAPSHOT
VERSION_CODE=1
GROUP=org.smartregister
POM_SETTING_DESCRIPTION=OpenSRP Client Growth Monitoring Application
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,8 @@ public void onClick(View view) {
calendar.set(year, month, day);

DateTime updateTime = new DateTime(calendar.getTime());
weightWrapper.setUpdatedWeightDate(updateTime, false);
if (currentGrowthDate != null && !org.apache.commons.lang3.time.DateUtils.isSameDay(calendar.getTime(), currentGrowthDate.toDate())) {
weightWrapper.setUpdatedWeightDate(updateTime, false);
if (monitorGrowth) {
heightWrapper.setUpdatedHeightDate(updateTime, false);
}
Expand Down

0 comments on commit 1c1c017

Please sign in to comment.