Commit 3be3ceb1 authored by Ryan Herbert's avatar Ryan Herbert manage null values in multi forms

When using the forms to upload multiple sample_sets, deleting a line
makes the form impossible to submit, due to a null value being sent in
the json payload.

See #3491
parent 2f619d0e
......@@ -450,6 +450,8 @@ def submit():
if length not in length_mapping:
length_mapping[length] = set_type
for p in data[set_type]:
if p is None:
errors = helper.validate(p)
action = "add"
if len(errors) > 0:
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