mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 01:44:34 +08:00
Fix adding experimaent contents to report [SCI-4112]
This commit is contained in:
parent
33a4cb93c7
commit
8f94c85b7a
1 changed files with 2 additions and 1 deletions
|
@ -18,6 +18,7 @@ class ReportsController < ApplicationController
|
||||||
step_contents_modal
|
step_contents_modal
|
||||||
result_contents_modal
|
result_contents_modal
|
||||||
project_contents
|
project_contents
|
||||||
|
experiment_contents
|
||||||
module_contents
|
module_contents
|
||||||
step_contents
|
step_contents
|
||||||
result_contents
|
result_contents
|
||||||
|
@ -343,7 +344,7 @@ class ReportsController < ApplicationController
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
if experiment.blank?
|
if experiment.blank?
|
||||||
format.json { render json: {}, status: :not_found }
|
format.json { render json: {}, status: :not_found }
|
||||||
elsif modules.blank?
|
elsif selected_modules.blank?
|
||||||
format.json { render json: {}, status: :no_content }
|
format.json { render json: {}, status: :no_content }
|
||||||
else
|
else
|
||||||
elements = generate_experiment_contents_json(selected_modules)
|
elements = generate_experiment_contents_json(selected_modules)
|
||||||
|
|
Loading…
Reference in a new issue