From b84677ddb6f8e4a90849c944667e1f52bda23dee Mon Sep 17 00:00:00 2001 From: Robert Barrow Date: Thu, 24 Oct 2019 19:13:54 +0100 Subject: [PATCH] FIX: checkbox showed incorrect value --- lib/builder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/builder.rb b/lib/builder.rb index ee29c549..6d698bd4 100644 --- a/lib/builder.rb +++ b/lib/builder.rb @@ -253,7 +253,7 @@ class CustomWizard::Builder user_field = update['user_field'] if user_field || custom_field - UserCustomField.where(user_id: @wizard.user.id, name: user_field || custom_field).pluck(:value) + UserCustomField.where(user_id: @wizard.user.id, name: user_field || custom_field).pluck(:value).first elsif UserProfile.column_names.include? attribute UserProfile.find_by(user_id: @wizard.user.id).send(attribute) elsif User.column_names.include? attribute