1
0
Fork 0

boolean cast bugfix

Dieser Commit ist enthalten in:
Angus McLeod 2019-09-11 21:30:59 +10:00
Ursprung 0b9abf84cc
Commit 26ce6a313b

Datei anzeigen

@ -341,7 +341,7 @@ class CustomWizard::Builder
end end
def standardise_boolean(value) def standardise_boolean(value)
!!HasCustomFields::Helpers::CUSTOM_FIELD_TRUE.include?(value) ActiveRecord::Type::Boolean.new.cast(value)
end end
def create_topic(user, action, data) def create_topic(user, action, data)