about summary refs log tree commit diff
path: root/app/controllers/settings/profiles_controller.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-05-17 13:00:56 +0200
committerGitHub <noreply@github.com>2018-05-17 13:00:56 +0200
commit7293b9fc6190acd6d2a481c158c718a7a8299c73 (patch)
tree529ce1dde035472736e216eaa057749a92799148 /app/controllers/settings/profiles_controller.rb
parentb48a166c82480d5d27139cb07077a42b45149563 (diff)
Ensure unfilled fields are shown when errors are shown (#7523)
Fix #7486
Diffstat (limited to 'app/controllers/settings/profiles_controller.rb')
-rw-r--r--app/controllers/settings/profiles_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/settings/profiles_controller.rb b/app/controllers/settings/profiles_controller.rb
index 1b01fc75f..fe265c81d 100644
--- a/app/controllers/settings/profiles_controller.rb
+++ b/app/controllers/settings/profiles_controller.rb
@@ -20,6 +20,7 @@ class Settings::ProfilesController < ApplicationController
       ActivityPub::UpdateDistributionWorker.perform_async(@account.id)
       redirect_to settings_profile_path, notice: I18n.t('generic.changes_saved_msg')
     else
+      @account.build_fields
       render :show
     end
   end