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
Fix - delete product specification
KrzysztofPajak6a7a00efbd39
diff --git a/src/Web/Grand.Web.Admin/Controllers/ProductController.cs b/src/Web/Grand.Web.Admin/Controllers/ProductController.csindex 63c93750c..b64e5603c 100644--- a/src/Web/Grand.Web.Admin/Controllers/ProductController.cs+++ b/src/Web/Grand.Web.Admin/Controllers/ProductController.cs@@ -1487,7 +1487,7 @@ namespace Grand.Web.Admin.Controllersif (product == null)return Content("Product not exists");- var psa = product.ProductSpecificationAttributes.Where(x => x.Id == model.Id && x.SpecificationAttributeId == model.ProductSpecificationId).FirstOrDefault();+ var psa = product.ProductSpecificationAttributes.Where(x => x.Id == model.Id).FirstOrDefault();if (psa == null)throw new ArgumentException("No specification attribute found with the specified id");