Fix template error on account page (#8562)

tokarchuk/v1.17
John Olheiser 5 years ago committed by zeripath
parent 0a004a69cd
commit 240f46a422
  1. 2
      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()
}

Loading…
Cancel
Save