Browse Source

Value can be false

Angus McLeod 6 years ago
parent
commit
9343b63945
1 changed files with 1 additions and 1 deletions
  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']]
           value = field['value_custom'] ? field['value_custom'] : data[field['value']]
           key = field['key']
           key = field['key']
 
 
-          if key && value
+          if key && value != nil
             if key.include?('custom_fields')
             if key.include?('custom_fields')
               keyArr = key.split('.')
               keyArr = key.split('.')