This commit is contained in:
BoHung Chiu 2022-01-28 15:50:24 +08:00
parent 14deddb4aa
commit 4fd40830be
1 changed files with 5 additions and 1 deletions

View File

@ -215,7 +215,11 @@ class Admin::CancerpredictsController < OrbitAdminController
item_hash = item_hash.merge(params_cancer[item]) item_hash = item_hash.merge(params_cancer[item])
@form_to_show[item] = item_hash @form_to_show[item] = item_hash
elsif @form_to_show[item].class == Array elsif @form_to_show[item].class == Array
@form_to_show[item] = YAML.load(params_cancer[item]) if params_cancer[item].class != Array
@form_to_show[item] = YAML.load(params_cancer[item])
else
@form_to_show[item] = params_cancer[item]
end
@form_to_show[item] = [] if @form_to_show[item].class != Array @form_to_show[item] = [] if @form_to_show[item].class != Array
else else
@form_to_show[item] = params_cancer[item] @form_to_show[item] = params_cancer[item]