Commit 2729534b authored by RyanHerb's avatar RyanHerb
Browse files

file.py edit error message

Added an error message when editing a file if the user doesn't specify a
patient, run or sample set to associate the file to.
parent b86cffa5
......@@ -341,6 +341,9 @@ def edit_form():
run_id = None
generic_id = None
if request.vars['patient_id'] == '' and request.vars['run_id'] == "" and request.vars['generic_id'] == "":
error += " missing patient or run or sample_set"
if request.vars['patient_id'] != '' :
patient_id = int(request.vars['patient_id'].split('(')[-1][:-1])
if request.vars['run_id'] != '' :
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment