Parcourir la source

Value can be false

Angus McLeod il y a 6 ans
Parent
commit
9343b63945
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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('.')