]> cat aescling's git repositories - mastodon.git/commitdiff
Ensure unfilled fields are shown when errors are shown (#7523)
authorEugen Rochko <eugen@zeonfederated.com>
Thu, 17 May 2018 11:00:56 +0000 (13:00 +0200)
committerGitHub <noreply@github.com>
Thu, 17 May 2018 11:00:56 +0000 (13:00 +0200)
Fix #7486

app/controllers/settings/profiles_controller.rb

index 1b01fc75f03eeda3c5c92c0c64f82ce4a0bb5d45..fe265c81d29250a9c9d404a52b69a2417f0e702a 100644 (file)
@@ -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