Skip to content

Commit a76bbfb

Browse files
authored
Fix store filter override in admin "add product" popup (#657)
* Fix store filtering in add product popup not working for admin users --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent 0b6726d commit a76bbfb

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Web/Grand.Web.AdminShared/Services/BlogViewModelService.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@ public virtual async Task<BlogPost> UpdateBlogPostModel(BlogPostModel model, Blo
209209
public virtual async Task<(IList<ProductModel> products, int totalCount)> PrepareProductModel(
210210
BlogProductModel.AddProductModel model, int pageIndex, int pageSize)
211211
{
212-
model.SearchStoreId = _contextAccessor.WorkContext.CurrentCustomer.StaffStoreId;
213212
var products = await _productService.PrepareProductList(model.SearchCategoryId, model.SearchBrandId,
214213
model.SearchCollectionId, model.SearchStoreId, model.SearchVendorId, model.SearchProductTypeId,
215214
model.SearchProductName, pageIndex, pageSize);

0 commit comments

Comments
 (0)