Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-25 18:50:27 +01:00
Handle case of custom-field-only update
Dieser Commit ist enthalten in:
Ursprung
7841ee8101
Commit
fb06c0def2
1 geänderte Dateien mit 12 neuen und 11 gelöschten Zeilen
|
@ -97,9 +97,9 @@ class CustomWizard::Action
|
||||||
end
|
end
|
||||||
|
|
||||||
def update_profile
|
def update_profile
|
||||||
return unless (profile_updates = action['profile_updates']).length
|
|
||||||
params = {}
|
params = {}
|
||||||
|
|
||||||
|
if (profile_updates = action['profile_updates'])
|
||||||
profile_updates.first[:pairs].each do |pair|
|
profile_updates.first[:pairs].each do |pair|
|
||||||
if allowed_profile_field?(pair['key'])
|
if allowed_profile_field?(pair['key'])
|
||||||
key = cast_profile_key(pair['key'])
|
key = cast_profile_key(pair['key'])
|
||||||
|
@ -113,6 +113,7 @@ class CustomWizard::Action
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
params = add_custom_fields(params)
|
params = add_custom_fields(params)
|
||||||
|
|
||||||
|
|
Laden …
In neuem Issue referenzieren