Fix bug.
This commit is contained in:
parent
f897f12ef5
commit
163805f8c1
app/controllers/admin
|
@ -216,7 +216,7 @@ class Admin::CancerpredictsController < OrbitAdminController
|
|||
@form_to_show[item] = item_hash
|
||||
elsif @form_to_show[item].class == Array
|
||||
if params_cancer[item].class != Array
|
||||
@form_to_show[item] = YAML.load(params_cancer[item])
|
||||
@form_to_show[item] = YAML.load(params_cancer[item]) rescue []
|
||||
else
|
||||
@form_to_show[item] = params_cancer[item]
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue