Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-10 04:12:53 +01:00
Merge pull request #20 from merefield/juless_extensions
FIX: checkbox showed incorrect value
Dieser Commit ist enthalten in:
Commit
8dacd5ec4c
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
|
@ -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
|
||||
|
|
Laden …
In neuem Issue referenzieren