Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

SubAccountEditValidator - add missing resource

support8bb9430c56ea
diff --git a/src/Web/Grand.Web/App_Data/Resources/DefaultLanguage.xml b/src/Web/Grand.Web/App_Data/Resources/DefaultLanguage.xml
index 46be1ce3d..0bbf973f4 100644
--- a/src/Web/Grand.Web/App_Data/Resources/DefaultLanguage.xml
+++ b/src/Web/Grand.Web/App_Data/Resources/DefaultLanguage.xml
@@ -576,6 +576,9 @@
<Resource Name="Account.Navigation" Area="Front">
<Value>My account</Value>
</Resource>
+ <Resource Name="Account.NoExists" Area="Front">
+ <Value>Account not exists</Value>
+ </Resource>
<Resource Name="Account.Options" Area="Front">
<Value>Options</Value>
</Resource>
diff --git a/src/Web/Grand.Web/Validators/Customer/SubAccountEditValidator.cs b/src/Web/Grand.Web/Validators/Customer/SubAccountEditValidator.cs
index 1b997d50f..2d33e6489 100644
--- a/src/Web/Grand.Web/Validators/Customer/SubAccountEditValidator.cs
+++ b/src/Web/Grand.Web/Validators/Customer/SubAccountEditValidator.cs
@@ -38,11 +38,11 @@ namespace Grand.Web.Validators.Customer
{
case null:
context.AddFailure(
- translationService.GetResource("Account not exists"));
+ translationService.GetResource("Account.NoExists"));
break;
case { Deleted: true }:
context.AddFailure(
- translationService.GetResource("Account deleted"));
+ translationService.GetResource("Account.DeleteAccount"));
break;
case not null when !await groupService.IsRegistered(customer):
context.AddFailure(