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

Profile updater bugfix

Dieser Commit ist enthalten in:
Angus McLeod 2017-11-02 11:54:40 +08:00
Ursprung 8f9fe92849
Commit 37cd08a3de

Datei anzeigen

@ -219,7 +219,7 @@ class CustomWizard::Builder
user_updater = UserUpdater.new(user, user) user_updater = UserUpdater.new(user, user)
attributes = {} attributes = {}
a['profile_updates'].each do |pu| a['profile_updates'].each do |pu|
attributes[pu['key'].to_sym] = data[pu['value']] attributes[pu['value'].to_sym] = data[pu['key']]
end end
user_updater.update(attributes) if attributes.present? user_updater.update(attributes) if attributes.present?
end end