Commit 1ae1f431189da1897bd71fd9b98301eab6c86939

Authored by Anastasia
1 parent 6aee6837

bug fix test t12

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
controllers/VariantCountController.php
@@ -233,7 +233,7 @@ @@ -233,7 +233,7 @@
233 if (!is_null($q)) { 233 if (!is_null($q)) {
234 $not = VariantToShop::find() 234 $not = VariantToShop::find()
235 ->select('variant_id') 235 ->select('variant_id')
236 - ->where([ 'shop_id' => $shop_id ]); 236 + ->where([ 'shop_id' => $shop_id ])->asArray()->all();
237 $out[ 'results' ] = Variant::find() 237 $out[ 'results' ] = Variant::find()
238 ->select( 238 ->select(
239 [ 239 [
@@ -248,7 +248,7 @@ @@ -248,7 +248,7 @@
248 $q, 248 $q,
249 ] 249 ]
250 ) 250 )
251 - ->where( 251 + ->andWhere(
252 [ 252 [
253 'NOT IN', 253 'NOT IN',
254 'variant.id', 254 'variant.id',