Angus McLeod 6 năm trước cách đây
mục cha
commit
c098a24cb3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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)