1
0
Fork 0

Merge pull request #20 from merefield/juless_extensions

FIX: checkbox showed incorrect value
Dieser Commit ist enthalten in:
merefield 2019-10-24 19:15:29 +01:00 committet von GitHub
Commit 8dacd5ec4c
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -253,7 +253,7 @@ class CustomWizard::Builder
user_field = update['user_field'] user_field = update['user_field']
if user_field || custom_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 elsif UserProfile.column_names.include? attribute
UserProfile.find_by(user_id: @wizard.user.id).send(attribute) UserProfile.find_by(user_id: @wizard.user.id).send(attribute)
elsif User.column_names.include? attribute elsif User.column_names.include? attribute