Skip to content

Commit 2fbd5ae

Browse files
jolheiserzeripath
authored andcommitted
Fix template error on account page (#8562) (#8622)
1 parent 0032278 commit 2fbd5ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/user/setting/account.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ func Account(ctx *context.Context) {
2828
ctx.Data["Title"] = ctx.Tr("settings")
2929
ctx.Data["PageIsSettingsAccount"] = true
3030
ctx.Data["Email"] = ctx.User.Email
31-
ctx.Data["EmailNotificationsPreference"] = ctx.User.EmailNotifications()
3231

3332
loadAccountData(ctx)
3433

@@ -230,4 +229,5 @@ func loadAccountData(ctx *context.Context) {
230229
return
231230
}
232231
ctx.Data["Emails"] = emails
232+
ctx.Data["EmailNotificationsPreference"] = ctx.User.EmailNotifications()
233233
}

0 commit comments

Comments
 (0)