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
Admin panel - Fix - search by category name
KrzysztofPajake4ac2e9528cd
diff --git a/src/Web/Grand.Web.Admin/Controllers/CustomerActionController.cs b/src/Web/Grand.Web.Admin/Controllers/CustomerActionController.csindex 68a5f43f6..8b8a8c68f 100644--- a/src/Web/Grand.Web.Admin/Controllers/CustomerActionController.cs+++ b/src/Web/Grand.Web.Admin/Controllers/CustomerActionController.cs@@ -411,7 +411,7 @@ namespace Grand.Web.Admin.Controllers[HttpPost]public async Task<IActionResult> CategoryAddPopupList(DataSourceRequest command, CustomerActionConditionModel.AddCategoryConditionModel model){- var categories = await _categoryService.GetAllCategories(model.SearchCategoryName,+ var categories = await _categoryService.GetAllCategories(categoryName: model.SearchCategoryName,pageIndex: command.Page - 1, pageSize: command.PageSize, showHidden: true);var items = new List<CategoryModel>();foreach (var x in categories)diff --git a/src/Web/Grand.Web.Admin/Controllers/CustomerReminderController.cs b/src/Web/Grand.Web.Admin/Controllers/CustomerReminderController.csindex 75dd97c0a..0c73e4777 100644--- a/src/Web/Grand.Web.Admin/Controllers/CustomerReminderController.cs+++ b/src/Web/Grand.Web.Admin/Controllers/CustomerReminderController.cs@@ -348,7 +348,7 @@ namespace Grand.Web.Admin.Controllers[HttpPost]public async Task<IActionResult> CategoryAddPopupList(DataSourceRequest command, CustomerReminderModel.ConditionModel.AddCategoryConditionModel model, [FromServices] ICategoryService categoryService){- var categories = await categoryService.GetAllCategories(model.SearchCategoryName,+ var categories = await categoryService.GetAllCategories(categoryName: model.SearchCategoryName,pageIndex: command.Page - 1, pageSize: command.PageSize, showHidden: true);var items = new List<CategoryModel>();foreach (var item in categories)diff --git a/src/Web/Grand.Web.Admin/Controllers/DiscountController.cs b/src/Web/Grand.Web.Admin/Controllers/DiscountController.csindex 3b165e406..8196d3ee7 100644--- a/src/Web/Grand.Web.Admin/Controllers/DiscountController.cs+++ b/src/Web/Grand.Web.Admin/Controllers/DiscountController.cs@@ -494,7 +494,7 @@ namespace Grand.Web.Admin.Controllers[HttpPost]public async Task<IActionResult> CategoryAddPopupList(DataSourceRequest command, DiscountModel.AddCategoryToDiscountModel model, [FromServices] ICategoryService categoryService){- var categories = await categoryService.GetAllCategories(model.SearchCategoryName,+ var categories = await categoryService.GetAllCategories(categoryName: model.SearchCategoryName,pageIndex: command.Page - 1, pageSize: command.PageSize, showHidden: true);var items = new List<CategoryModel>();foreach (var item in categories)diff --git a/src/Web/Grand.Web.Admin/Controllers/SearchController.cs b/src/Web/Grand.Web.Admin/Controllers/SearchController.csindex 577e6ac42..5b60cf4ee 100644--- a/src/Web/Grand.Web.Admin/Controllers/SearchController.cs+++ b/src/Web/Grand.Web.Admin/Controllers/SearchController.cs@@ -99,7 +99,7 @@ namespace Grand.Web.Admin.Controllersif (result.Count() < _adminSearchSettings.MaxSearchResultsCount && _adminSearchSettings.SearchInCategories){- var categories = await _categoryService.GetAllCategories(searchTerm, pageSize: _adminSearchSettings.MaxSearchResultsCount - result.Count(), showHidden:+ var categories = await _categoryService.GetAllCategories(categoryName: searchTerm, pageSize: _adminSearchSettings.MaxSearchResultsCount - result.Count(), showHidden:await _groupService.IsAdmin(_workContext.CurrentCustomer));foreach (var category in categories){