Fix bug.
This commit is contained in:
parent
e3c123e5aa
commit
f897f12ef5
|
@ -215,7 +215,11 @@ class Admin::CancerpredictsController < OrbitAdminController
|
|||
item_hash = item_hash.merge(params_cancer[item])
|
||||
@form_to_show[item] = item_hash
|
||||
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
|
||||
else
|
||||
@form_to_show[item] = params_cancer[item]
|
||||
|
|
Loading…
Reference in New Issue