Explorar o código

Better check of value

Angus McLeod %!s(int64=6) %!d(string=hai) anos
pai
achega
2dc7ada433
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/builder.rb

+ 1 - 1
lib/builder.rb

@@ -258,7 +258,7 @@ class CustomWizard::Builder
           value = field['value_custom'] ? field['value_custom'] : data[field['value']]
           key = field['key']
 
-          if key && value != nil
+          if key && (value.present? || value === false)
             if key.include?('custom_fields')
               keyArr = key.split('.')