diff --git a/common/modules/product/models/Import.php b/common/modules/product/models/Import.php index d3dc7ee..ded42d6 100755 --- a/common/modules/product/models/Import.php +++ b/common/modules/product/models/Import.php @@ -124,7 +124,7 @@ class Import extends Model { // ===== Set stock ==== if ( $city_name ) { - if ( ($stock = Stock::find()->filterWhere(['ilike', 'name', trim($city_name)])->one()) === null ) { + if ( ($stock = Stock::find()->filterWhere(['name' => trim($city_name)])->one()) === null ) { // Create stock $stock = new Stock(); $stock->name = trim($city_name); -- libgit2 0.21.4