فهرست منبع

Also pass custom_fields to the UserUpdater

Angus McLeod 6 سال پیش
والد
کامیت
a5a18666ad
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 2
      lib/builder.rb

+ 1 - 2
lib/builder.rb

@@ -347,8 +347,7 @@ class CustomWizard::Builder
     end
 
     if custom_fields.present?
-      custom_fields.each { |k, v| user.custom_fields[k] = v }
-      user.save_custom_fields(true)
+      attributes[:custom_fields] = custom_fields
     end
 
     if attributes.present?