Skip to content

Commit

Permalink
Do not save read only forms again
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham1g5 committed Sep 5, 2024
1 parent 6d210ad commit 833f92a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/org/commcare/activities/FormEntryActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -820,6 +820,10 @@ private void saveDataToDisk(boolean exit, boolean complete, String updatedSaveNa
return;
}

if (mFormController.isFormReadOnly()) {
return;
}

// save current answer; if headless, don't evaluate the constraints
// before doing so.
boolean wasScreenSaved =
Expand Down

0 comments on commit 833f92a

Please sign in to comment.