Skip to content

Commit 7fddad8

Browse files
EntityPicker hasn't searched for product names anymore
1 parent d0c321f commit 7fddad8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/Presentation/SmartStore.Web/Controllers/EntityController.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public ActionResult Picker(EntityPickerModel model, FormCollection form)
116116
{
117117
#region Product
118118

119-
model.SearchTerm = model.ProductName.TrimSafe();
119+
model.SearchTerm = model.SearchTerm.TrimSafe();
120120

121121
var hasPermission = _services.Permissions.Authorize(StandardPermissionProvider.ManageCatalog);
122122
var disableIfNotSimpleProduct = disableIf.Contains("notsimpleproduct");
@@ -235,7 +235,7 @@ public ActionResult Picker(EntityPickerModel model, FormCollection form)
235235
{
236236
#region Category
237237

238-
var categories = _categoryService.GetAllCategories(model.SearchTerm, showHidden: true);
238+
var categories = _categoryService.GetAllCategories(model.SearchTerm, showHidden: true);
239239
var allPictureIds = categories.Select(x => x.PictureId.GetValueOrDefault());
240240
var allPictureInfos = _pictureService.GetPictureInfos(allPictureIds);
241241

0 commit comments

Comments
 (0)