Explorar el Código

add_fields exception protection

Angus McLeod hace 7 años
padre
commit
c9b8403569
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/builder.rb

+ 1 - 1
lib/builder.rb

@@ -178,7 +178,7 @@ class CustomWizard::Builder
                         value = data[f['value']]
                         key = f['key']
 
-                        if key.include?('custom_fields')
+                        if key && key.include?('custom_fields')
                           keyArr = key.split('.')
 
                           if keyArr.length === 3