Skip to content

Commit

Permalink
Merge pull request #633 from EyeSeeTea/code-v1.2
Browse files Browse the repository at this point in the history
survey state change when imported questions blocked by Exception
  • Loading branch information
ifoche committed Dec 9, 2015
2 parents fa58d9f + 100570b commit 48720cd
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ public PushResult push() {
//data = prepareDataElements(data, controlData.get(""));
data = prepareDataElements(data, null);
pushResult = new PushResult(pushData(data));
if (pushResult.getImported().equals("0")){
throw new Exception("Server was not able to import the data. Please, report to the server admin.");
}
if(pushResult.isSuccessful()){
//TODO: This should be removed once DHIS bug is solved
//pushControlDataElements(controlData);
Expand Down

0 comments on commit 48720cd

Please sign in to comment.