akvo / akvo-flow-mobile

Akvo Flow app
GNU General Public License v3.0
18 stars 16 forks source link

Issue/1787 unable to submit #1791

Closed valllllll2000 closed 3 years ago

valllllll2000 commented 3 years ago

Before the PR (what is the issue or what needed to be done)

Due to a race condition, surveyInstance was deleted before the user could submit data

The solution (Part1)

Make sure the surveyInstance is created in FormActivity the first time an answer is saved Stop deleting empty datapoints as this can provoke data loss convert some of the small classes to Kotlin Some renames

Screenshots (if appropriate)

NA

Reviewer Checklist