Explorar o código

Value can be false

Angus McLeod %!s(int64=6) %!d(string=hai) anos
pai
achega
9343b63945
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
+          if key && value != nil
             if key.include?('custom_fields')
               keyArr = key.split('.')