Fix bug.
This commit is contained in:
parent
dd52046c16
commit
e3c123e5aa
|
@ -207,7 +207,7 @@ class Admin::CancerpredictsController < OrbitAdminController
|
||||||
else
|
else
|
||||||
@form_to_show.form_show_in_result = {}
|
@form_to_show.form_show_in_result = {}
|
||||||
end
|
end
|
||||||
@create_items = ['title_texts','form_result_is_right','text_descibe','years','table_above_texts','text_above_texts','surgery_only_texts','extra_texts','extra_therapy_texts','danger_texts','texts_between_Result_and_result_block','prediction_formula','hidden_variables','advance_mode']
|
@create_items = ['title_texts','form_result_is_right','text_descibe','years','table_above_texts','text_above_texts','surgery_only_texts','extra_texts','extra_therapy_texts','danger_texts','texts_between_Result_and_result_block','prediction_formula','hidden_variables','advance_mode','years_settings']
|
||||||
params_cancer = params.require("cancerpredictfields").permit!
|
params_cancer = params.require("cancerpredictfields").permit!
|
||||||
@create_items.each do |item|
|
@create_items.each do |item|
|
||||||
if (@form_to_show[item].class == BSON::Document) || (@form_to_show.send(item).class == Hash)
|
if (@form_to_show[item].class == BSON::Document) || (@form_to_show.send(item).class == Hash)
|
||||||
|
|
Loading…
Reference in New Issue