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 233 if (!is_null($q)) {
234 234 $not = VariantToShop::find()
235 235 ->select('variant_id')
236   - ->where([ 'shop_id' => $shop_id ]);
  236 + ->where([ 'shop_id' => $shop_id ])->asArray()->all();
237 237 $out[ 'results' ] = Variant::find()
238 238 ->select(
239 239 [
... ... @@ -248,7 +248,7 @@
248 248 $q,
249 249 ]
250 250 )
251   - ->where(
  251 + ->andWhere(
252 252 [
253 253 'NOT IN',
254 254 'variant.id',
... ...