From 9343b63945ed966e456089a9ab72ceb51d55b59f Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Tue, 5 Jun 2018 12:37:47 +1000 Subject: [PATCH] Value can be false --- lib/builder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/builder.rb b/lib/builder.rb index f996cf6e..9c3a2bd1 100644 --- a/lib/builder.rb +++ b/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('.')