Angus McLeod 6 vuotta sitten
vanhempi
commit
c098a24cb3
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      lib/builder.rb

+ 1 - 1
lib/builder.rb

@@ -148,7 +148,7 @@ class CustomWizard::Builder
       params[:value] = standardise_boolean(params[:value])
     end
 
-    step.add_field(params)
+    field = step.add_field(params)
 
     if field_template['type'] === 'dropdown'
       build_dropdown_list(field, field_template)