瀏覽代碼

boolean cast fix

Angus McLeod 6 年之前
父節點
當前提交
0dab4f4964
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/builder.rb

+ 1 - 1
lib/builder.rb

@@ -216,7 +216,7 @@ class CustomWizard::Builder
 
     ## ensure all checkboxes are booleans
     if field['type'] === 'checkbox'
-      updater.fields[field['id']] = value == true
+      updater.fields[field['id']] = value == 'true'
     end
   end