Explorar el Código

Better check of value

Angus McLeod hace 6 años
padre
commit
2dc7ada433
Se han modificado 1 ficheros con 1 adiciones y 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('.')