Commit ef552710 authored by Mikaël Salson's avatar Mikaël Salson

file.py: Fix undefined patient_sample_set_id

Because of code duplication, also apply fix of b035dd95
parent b035dd95
......@@ -315,9 +315,10 @@ def edit_form():
id_sample_set_membership_patient = db.sample_set_membership.insert(sample_set_id=patient_sample_set_id,
sequence_file_id=request.vars["id"])
originating_id = patient_sample_set_id
if request.vars['sample_type'] == 'run':
originating_id = run_sample_set_id
else:
originating_id = patient_sample_set_id
redirect_args = {"id" : originating_id}
res = {"file_id" : request.vars["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