added rescue to radiogroup

This commit is contained in:
Harry Bomrah 2017-03-02 22:00:42 +08:00
parent 034ac421ce
commit ee7954594e
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ class Admin::SurveysController < OrbitAdminController
if radiogroup.respond_to?(key + '_translations')
new_radiogroup.send(key + '_translations=', value)
else
new_radiogroup.write_attribute(key, value)
new_radiogroup.write_attribute(key, value) rescue nil
end
end
end