From 2fbd5ae2e56e3cbf0aad5a7bf76b632da42506c6 Mon Sep 17 00:00:00 2001 From: John Olheiser <42128690+jolheiser@users.noreply.github.com> Date: Tue, 22 Oct 2019 04:08:59 -0500 Subject: [PATCH] Fix template error on account page (#8562) (#8622) --- routers/user/setting/account.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() }