diff options
author | John Olheiser <42128690+jolheiser@users.noreply.github.com> | 2019-10-19 04:01:33 -0500 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2019-10-19 10:01:33 +0100 |
commit | 240f46a4220d9b8d38d084dca4ff47d442c12f9c (patch) | |
tree | fdafc5116af98c3cdc79fa5853260f02876be686 /routers | |
parent | 0a004a69cdcad2fa13d3d314cb984718c88a2940 (diff) | |
download | gitea-240f46a4220d9b8d38d084dca4ff47d442c12f9c.tar.gz gitea-240f46a4220d9b8d38d084dca4ff47d442c12f9c.zip |
Fix template error on account page (#8562)
Diffstat (limited to 'routers')
-rw-r--r-- | routers/user/setting/account.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/user/setting/account.go b/routers/user/setting/account.go index e7de2dffd4..73799c8bd7 100644 --- a/routers/user/setting/account.go +++ b/routers/user/setting/account.go @@ -28,7 +28,6 @@ func Account(ctx *context.Context) { ctx.Data["Title"] = ctx.Tr("settings") ctx.Data["PageIsSettingsAccount"] = true ctx.Data["Email"] = ctx.User.Email - ctx.Data["EmailNotificationsPreference"] = ctx.User.EmailNotifications() loadAccountData(ctx) @@ -230,4 +229,5 @@ func loadAccountData(ctx *context.Context) { return } ctx.Data["Emails"] = emails + ctx.Data["EmailNotificationsPreference"] = ctx.User.EmailNotifications() } |