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.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
CustomerAttributeParser - remove translationService
support3fb68a2fe35b
diff --git a/src/Business/Grand.Business.Customers/Services/CustomerAttributeParser.cs b/src/Business/Grand.Business.Customers/Services/CustomerAttributeParser.csindex cd73271b9..9317293f1 100644--- a/src/Business/Grand.Business.Customers/Services/CustomerAttributeParser.cs+++ b/src/Business/Grand.Business.Customers/Services/CustomerAttributeParser.cs@@ -1,5 +1,4 @@using Grand.Business.Core.Extensions;-using Grand.Business.Core.Interfaces.Common.Localization;using Grand.Business.Core.Interfaces.Customers;using Grand.Domain.Catalog;using Grand.Domain.Common;@@ -16,13 +15,10 @@ namespace Grand.Business.Customers.Servicespublic class CustomerAttributeParser : ICustomerAttributeParser{private readonly ICustomerAttributeService _customerAttributeService;- private readonly ITranslationService _translationService;- public CustomerAttributeParser(ICustomerAttributeService customerAttributeService,- ITranslationService translationService)+ public CustomerAttributeParser(ICustomerAttributeService customerAttributeService){_customerAttributeService = customerAttributeService;- _translationService = translationService;}/// <summary>@@ -119,9 +115,8 @@ namespace Grand.Business.Customers.Services//if not foundif (found) continue;- var notFoundWarning = string.Format(_translationService.GetResource("ShoppingCart.SelectAttribute"), a2.GetTranslation(a => a.Name, ""));- warnings.Add(notFoundWarning);+ warnings.Add("Selected attribute not found");}return warnings;