cast 'true' to true and 'false' to false in case of boolean column addition, fixes #1613
This commit is contained in:
parent
e75ce991cb
commit
749fe8df5e
1 changed files with 5 additions and 0 deletions
|
@ -108,6 +108,11 @@ class ObjectManagerAttributesController < ApplicationController
|
|||
params[:data_option][:options][true] = params[:data_option][:options][:true]
|
||||
params[:data_option][:options].delete(:true)
|
||||
end
|
||||
if params[:data_option][:default] == 'true'
|
||||
params[:data_option][:default] = true
|
||||
elsif params[:data_option][:default] == 'false'
|
||||
params[:data_option][:default] = false
|
||||
end
|
||||
end
|
||||
end
|
||||
if params[:data_option] && !params[:data_option].key?(:default)
|
||||
|
|
Loading…
Reference in a new issue