From 0ef9c7eff60c62d98fa31baa179de907c4bb98d1 Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Thu, 11 May 2017 15:30:19 +0200 Subject: [PATCH] Fix task ordering in reports [SCI-1008] --- app/controllers/concerns/report_actions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/concerns/report_actions.rb b/app/controllers/concerns/report_actions.rb index e301aa1a6..d6ce386c1 100644 --- a/app/controllers/concerns/report_actions.rb +++ b/app/controllers/concerns/report_actions.rb @@ -52,7 +52,7 @@ module ReportActions def generate_experiment_contents_json(experiment, selected_modules) res = [] - experiment.my_modules.each do |my_module| + experiment.my_modules.order(:workflow_order).each do |my_module| next unless selected_modules.include?(my_module.id) res << generate_new_el(false)