From 1c1c0174bb6270e7f4734ae1a823dc23bc5b29b7 Mon Sep 17 00:00:00 2001 From: Rodgers Andati Date: Mon, 30 Mar 2020 18:41:36 +0300 Subject: [PATCH] fix editing weight not saving fixes #66 --- gradle.properties | 2 +- .../growthmonitoring/fragment/EditGrowthDialogFragment.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index d579662..999abef 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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 diff --git a/opensrp-growth-monitoring/src/main/java/org/smartregister/growthmonitoring/fragment/EditGrowthDialogFragment.java b/opensrp-growth-monitoring/src/main/java/org/smartregister/growthmonitoring/fragment/EditGrowthDialogFragment.java index c11188f..681adcd 100644 --- a/opensrp-growth-monitoring/src/main/java/org/smartregister/growthmonitoring/fragment/EditGrowthDialogFragment.java +++ b/opensrp-growth-monitoring/src/main/java/org/smartregister/growthmonitoring/fragment/EditGrowthDialogFragment.java @@ -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); }