2
0

Fix issue with saving empty fields values on profile update (#33689)

This commit is contained in:
Matt Jankowski
2025-01-22 13:50:15 -05:00
committed by GitHub
parent a6fc776c6f
commit 4a9c49ee43
2 changed files with 28 additions and 6 deletions

View File

@@ -20,7 +20,7 @@ class Settings::ProfilesController < Settings::BaseController
private
def account_params
params.expect(account: [:display_name, :note, :avatar, :header, :bot, fields_attributes: [:name, :value]])
params.expect(account: [:display_name, :note, :avatar, :header, :bot, fields_attributes: [[:name, :value]]])
end
def set_account