Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion opensrp-anc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ tasks.withType(Test) {

dependencies {
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation('org.smartregister:opensrp-client-native-form:2.1.17-SNAPSHOT@aar') {
implementation('org.smartregister:opensrp-client-native-form:2.1.19-PREVIEW-SNAPSHOT@aar') {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we using a preview version for NativeForms?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the latest translation changes are currently in the preview version as the translation branch is not merged yet that is why preview version is used

transitive = true
exclude group: 'com.android.support', module: 'recyclerview-v7'
exclude group: 'com.android.support', module: 'appcompat-v7'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ private void updateEventAndRequiredStepsField(String baseEntityId, PartialContac
formSubmissionIDs.add(event.getFormSubmissionId());

JSONObject eventJson = new JSONObject(ANCJsonFormUtils.gson.toJson(event));
eventJson.put(JsonFormConstants.Properties.DETAILS, JsonFormUtils.getJSONObject(formObject, JsonFormConstants.Properties.DETAILS));
JSONObject detailsObject = JsonFormUtils.getJSONObject(formObject, JsonFormConstants.Properties.DETAILS);
detailsObject.put(ConstantsUtils.KeyUtils.CONTACT_NO, partialContact.getContactNo());
eventJson.put(JsonFormConstants.Properties.DETAILS, detailsObject);
AncLibrary.getInstance().getEcSyncHelper().addEvent(baseEntityId, eventJson);

processTasks(formObject);
Expand Down
Loading