acadsamplesdb / acad_samples

ACAD samples database
0 stars 0 forks source link

Prevent deletion if parent has children (applies to Samples, Extractions, Amplification, Enrichments) #16

Closed sgoodswen closed 8 years ago

sgoodswen commented 8 years ago

There is a hierarchical relationship between SampleID, Extraction result ID, Amplification result ID, and Enrichment ID.

The option to [delete] must be disabled if a parent has children. For example, you cannot delete a sample if it is associated with Extractions. To enable the Samples [delete] button, the user would need to delete the extractions first. The Extraction [delete] button would only be enabled if there were no children (Amplifications, Enrichments) and so on

This provides a more secure method to prevent accidental deletion

sgoodswen commented 8 years ago

This has been implemented