Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-25 18:50:27 +01:00
Allow custom profile updates
Dieser Commit ist enthalten in:
Ursprung
81d86bec7c
Commit
05b651fdc6
1 geänderte Dateien mit 11 neuen und 1 gelöschten Zeilen
|
@ -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']
|
||||||
|
|
||||||
|
|
Laden …
In neuem Issue referenzieren