Merge pull request #905 from jitendra-webkul/jitendra

Fixed product repository search index issue
This commit is contained in:
Jitendra Singh 2019-05-07 17:57:53 +05:30 committed by GitHub
commit 2e57a12ac5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -468,7 +468,7 @@ class ProductRepository extends Repository
->where('flat_variants.locale', $locale);
});
if (isset($params['sort'])) {
if (isset($params['search'])) {
$qb->where('product_flat.name', 'like', '%' . urldecode($params['search']) . '%');
}