Commit 1cb4e20b authored by HERBERT Ryan's avatar HERBERT Ryan
Browse files

controllers/ file deletion issue

Fixed an issue with the calculation of associated_id when deleting
sequence files.
parent da730f66
......@@ -431,7 +431,7 @@ def delete():
associated_id = None
if sample_set.sample_type != 'sequence_file':
associated_elements = db(db[sample_set.sample_type].sample_set_id ==
if len(associated_elements > 0):
if len(associated_elements) > 0:
associated_id = associated_elements[0].id
if auth.can_modify_file(request.vars["id"]):
Supports Markdown
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