0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-23 01:40:29 +01:00

Allow custom profile updates

Dieser Commit ist enthalten in:
Angus McLeod 2019-07-22 17:16:22 +10:00
Ursprung 81d86bec7c
Commit 05b651fdc6

Datei anzeigen

@ -434,7 +434,17 @@ class CustomWizard::Builder
action['profile_updates'].each do |pu| action['profile_updates'].each do |pu|
value = pu['value'] value = pu['value']
custom_field = pu['value_custom'] custom_field = nil
if pu['value_custom']
custom_parts = pu['value_custom'].split('.')
if custom_parts.length == 2 && custom_parts[0] == 'custom_field'
custom_field = custom_parts[1]
else
value = custom_parts[0]
end
end
user_field = pu['user_field'] user_field = pu['user_field']
key = pu['key'] key = pu['key']