From 8f94c85b7ab8171efdc6024a32c897fa24b9d024 Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Fri, 22 Nov 2019 14:57:59 +0100 Subject: [PATCH] Fix adding experimaent contents to report [SCI-4112] --- app/controllers/reports_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/reports_controller.rb b/app/controllers/reports_controller.rb index b958d5f98..41308ab7c 100644 --- a/app/controllers/reports_controller.rb +++ b/app/controllers/reports_controller.rb @@ -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)