Fixed a bug in sku finding which was using like instead of equals operator

This commit is contained in:
Prashant Singh 2019-09-16 16:16:45 +05:30
parent bc862d9d99
commit c5aec7445d
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();
}