Commit 5e6c1235 authored by Ryan Herbert's avatar Ryan Herbert
Browse files

controllers/ multi stat fix bug when selecting single results_fileo

ensures that the results files id parameter is treated as a list when
therer is only one value passed.

See #2235
parent d9c6384a
......@@ -696,7 +696,11 @@ def multi_sample_stats():
results = []
#if not auth.can_view_sample_set():
# return "permission denied %s" % res
results = getStatData(request.vars['custom_result'])
custom_result = request.vars['custom_result']
if not isinstance(custom_result, list):
custom_result = [custom_result]
results = getStatData(custom_result)
data['results'] = results
return dict(data=data)
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