0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-26 02:50:28 +01:00

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