From 19a7a33f580358c1e68a829d364c96f0cb36d03d Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Fri, 17 Jun 2016 17:21:03 +0300 Subject: [PATCH] 14.06.16 --- common/modules/product/models/Import.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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