From b262f71c3295f10f7d8144da8cd61818b16d8fcc Mon Sep 17 00:00:00 2001 From: maliming Date: Wed, 11 Mar 2026 15:43:04 +0800 Subject: [PATCH] fix: initialize ProfileManagementPageCreationContext in OnPostAsync of ManageModel --- .../Pages/Account/Manage.cshtml.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/modules/account/src/Volo.Abp.Account.Web/Pages/Account/Manage.cshtml.cs b/modules/account/src/Volo.Abp.Account.Web/Pages/Account/Manage.cshtml.cs index 415a6851b6..ae615611e0 100644 --- a/modules/account/src/Volo.Abp.Account.Web/Pages/Account/Manage.cshtml.cs +++ b/modules/account/src/Volo.Abp.Account.Web/Pages/Account/Manage.cshtml.cs @@ -47,8 +47,15 @@ public class ManageModel : AccountPageModel return Page(); } - public virtual Task OnPostAsync() + public virtual async Task OnPostAsync() { - return Task.FromResult(Page()); + ProfileManagementPageCreationContext = new ProfileManagementPageCreationContext(ServiceProvider); + + foreach (var contributor in Options.Contributors) + { + await contributor.ConfigureAsync(ProfileManagementPageCreationContext); + } + + return Page(); } }