Explorar o código

add_fields exception protection

Angus McLeod %!s(int64=7) %!d(string=hai) anos
pai
achega
c9b8403569
Modificáronse 1 ficheiros con 1 adicións e 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