Commit 19a7a33f580358c1e68a829d364c96f0cb36d03d
1 parent
d56a651d
14.06.16
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
common/modules/product/models/Import.php
... | ... | @@ -124,7 +124,7 @@ class Import extends Model { |
124 | 124 | |
125 | 125 | // ===== Set stock ==== |
126 | 126 | if ( $city_name ) { |
127 | - if ( ($stock = Stock::find()->filterWhere(['ilike', 'name', trim($city_name)])->one()) === null ) { | |
127 | + if ( ($stock = Stock::find()->filterWhere(['name' => trim($city_name)])->one()) === null ) { | |
128 | 128 | // Create stock |
129 | 129 | $stock = new Stock(); |
130 | 130 | $stock->name = trim($city_name); | ... | ... |