diff --git a/gradle.properties b/gradle.properties index 9d85732e4..b2ccc9fb4 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -VERSION_NAME=1.7.21-SNAPSHOT +VERSION_NAME=1.7.22-SNAPSHOT VERSION_CODE=1 GROUP=org.smartregister POM_SETTING_DESCRIPTION=OpenSRP Client Core Application diff --git a/opensrp-app/src/main/java/org/smartregister/util/JsonFormUtils.java b/opensrp-app/src/main/java/org/smartregister/util/JsonFormUtils.java index b7d0e8f17..ae39e8138 100644 --- a/opensrp-app/src/main/java/org/smartregister/util/JsonFormUtils.java +++ b/opensrp-app/src/main/java/org/smartregister/util/JsonFormUtils.java @@ -32,6 +32,8 @@ import java.util.Map; import java.util.UUID; +import timber.log.Timber; + /** * Created by keyman on 08/02/2017. */ @@ -435,10 +437,13 @@ private static void createObservation(Event e, JSONObject jsonObject, String val entityIdVal = getString(jsonObject, OPENMRS_ENTITY_ID); entityParentVal = ""; vall.add(option.getString(OPENMRS_ENTITY_ID)); + if (option.has(KEY)) { + humanReadableValues.add(option.getString(KEY)); + } } } } catch (JSONException e1) { - Log.e(TAG, e1.getMessage()); + Timber.e("%s : %s",TAG , e1.getMessage()); } } else { if (values != null && values.length() > 0) {