miralbhalani / opendatakit

Automatically exported from code.google.com/p/opendatakit
0 stars 0 forks source link

Disable form delete if there is unsaved data #172

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Forms can be deleted from the form management interface even if there is some 
saved and unsubmitted data for the form. When this happens, attempts to review 
the data cause an exception and cause ODK to "force close", since the form 
linked to the data is no longer available. 

What steps will reproduce the problem?
1. Enter some data and save as incomplete
2. Go to the form management interface, select the form and delete it
3. Go the "review saved data" and try to open the data you had saved

What is the expected output? What do you see instead?
- Expectation would be that you are unable to delete the form while it still 
has data lying around. The user could be prompted to either first submit the 
data or discard it. Another possibility would be to let the person know that 
deleting the form would also delete the data associated with it.
- Instead, the form can be deleted and the "orphaned" data cannot be reviewed 
or submitted anymore.

What version of the product are you using? On what operating system?

1.1.4 on Android 1.5 and 1.6

Original issue reported on code.google.com by l...@applab.org on 21 Jan 2011 at 9:43

GoogleCodeExporter commented 9 years ago

Original comment by wbrune...@gmail.com on 7 Jun 2011 at 11:38

GoogleCodeExporter commented 9 years ago
In 1.1.7 I've updated the functionality for this.  You can still delete a form 
even if there are instances, however, if you try to load an instance it informs 
the user that the parent-form no longer exists.  Also, a user can still upload 
an instance even if the parent form is gone.  

Original comment by carlhart...@gmail.com on 10 Jun 2011 at 1:16