Merge pull request #2224 from okriuchykhin/ok_SCI_4112

Fix adding experiment contents to report [SCI-4112]
This commit is contained in:
Alex Kriuchykhin 2019-11-26 09:50:28 +01:00 committed by GitHub
commit 111056a032
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,6 +18,7 @@ class ReportsController < ApplicationController
step_contents_modal
result_contents_modal
project_contents
experiment_contents
module_contents
step_contents
result_contents
@ -343,7 +344,7 @@ class ReportsController < ApplicationController
respond_to do |format|
if experiment.blank?
format.json { render json: {}, status: :not_found }
elsif modules.blank?
elsif selected_modules.blank?
format.json { render json: {}, status: :no_content }
else
elements = generate_experiment_contents_json(selected_modules)