1
0
Fork 0

Profile updates bugfixes

Dieser Commit ist enthalten in:
Angus McLeod 2019-09-11 19:08:00 +10:00
Ursprung 961ad8cc27
Commit 83b49a9082

Datei anzeigen

@ -456,7 +456,7 @@ class CustomWizard::Builder
value = pu['value']
custom_field = nil
if pu['value_custom']
if pu['value_custom'].present?
custom_parts = pu['value_custom'].split('.')
if custom_parts.length == 2 && custom_parts[0] == 'custom_field'
custom_field = custom_parts[1]
@ -471,7 +471,13 @@ class CustomWizard::Builder
if user_field || custom_field
custom_fields[user_field || custom_field] = data[key]
else
attributes[value.to_sym] = data[key]
updater_key = value
if ['profile_background', 'card_background'].include?(value)
updater_key = "#{value}_upload_url"
end
attributes[updater_key.to_sym] = data[key] if updater_key
end
end