Skip to content

Commit

Permalink
fix crash when selecting a child in Child page
Browse files Browse the repository at this point in the history
  • Loading branch information
rizkisunaryo committed Jun 2, 2019
1 parent d64ddd7 commit eddc533
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -513,15 +513,17 @@ public void onDialogOptionSelection(DialogOption option, Object tag) {
CommonPersonObject kiparent = null;
try {
kiparent = kirep.findByCaseID(childobject.getColumnmaps().get("relational_id"));
detailsRepository.updateDetails(kiparent);
} catch (Exception e) {}
detailsRepository.updateDetails(kiparent);

JSONObject fieldOverrides = new JSONObject();

try {
fieldOverrides.put("Sub-village", kiparent.getDetails().get("address1"));
} catch (JSONException e) {
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
}

FieldOverrides fo = new FieldOverrides(fieldOverrides.toString());
Expand Down

0 comments on commit eddc533

Please sign in to comment.