소스 검색

Profile updater bugfix

Angus McLeod 7 년 전
부모
커밋
37cd08a3de
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/builder.rb

+ 1 - 1
lib/builder.rb

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