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.

Fix store filter override in admin "add product" popup (#657)

Copilota76bbfbfb72d
diff --git a/src/Web/Grand.Web.AdminShared/Services/BlogViewModelService.cs b/src/Web/Grand.Web.AdminShared/Services/BlogViewModelService.cs
index e59b6644d..cfd7cd178 100644
--- a/src/Web/Grand.Web.AdminShared/Services/BlogViewModelService.cs
+++ b/src/Web/Grand.Web.AdminShared/Services/BlogViewModelService.cs
@@ -209,7 +209,6 @@ public class BlogViewModelService : IBlogViewModelService
public virtual async Task<(IList<ProductModel> products, int totalCount)> PrepareProductModel(
BlogProductModel.AddProductModel model, int pageIndex, int pageSize)
{
- model.SearchStoreId = _contextAccessor.WorkContext.CurrentCustomer.StaffStoreId;
var products = await _productService.PrepareProductList(model.SearchCategoryId, model.SearchBrandId,
model.SearchCollectionId, model.SearchStoreId, model.SearchVendorId, model.SearchProductTypeId,
model.SearchProductName, pageIndex, pageSize);