Angus McLeod 6 年之前
父节点
当前提交
c098a24cb3
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)