Merge pull request #1465 from prashant-webkul/development

Catalog Rule & Cart Rule: Fixed a bug in sku finding which was using like instead of equals ope…
This commit is contained in:
Jitendra Singh 2019-09-16 17:56:06 +05:30 committed by GitHub
commit 7a23c60ff0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -182,7 +182,7 @@ class ConvertXToProductId
])->flatten()->all();
} else if ($testCondition == '=') {
$foundProducts = $this->product->findWhere([
['sku', '=', '%'.$testValue.'%'],
['sku', '=', $testValue],
['type', '!=', 'configurable']
])->flatten()->all();
}

View File

@ -171,7 +171,7 @@ class ConvertXToProductId
])->flatten()->all();
} else if ($testCondition == '=') {
$foundProducts = $this->product->findWhere([
['sku', '=', '%' . $testValue . '%'],
['sku', '=', $testValue],
['type', '!=', 'configurable']
])->flatten()->all();
}