|
@@ -332,7 +332,7 @@ discard block |
|
|
block discarded – undo |
|
332
|
332
|
$items = Ecommerce\Item::getList($selectOptions); |
|
333
|
333
|
$items = Ecommerce\Item\Param::getList([ |
|
334
|
334
|
'where' => ['item_id', array_keys($items), 'IN'], |
|
335
|
|
- 'join' => [[Ecommerce\Item\Option::table(), Ecommerce\Item\Option::index() . ' = ' . \Ecommerce\Item\Param::colPrefix() .Ecommerce\Item\Option::index(). ' and ' . \Ecommerce\Item\Option::colPrefix() . 'searchable = 1', 'inner']], |
|
|
335
|
+ 'join' => [[Ecommerce\Item\Option::table(), Ecommerce\Item\Option::index() . ' = ' . \Ecommerce\Item\Param::colPrefix() . Ecommerce\Item\Option::index() . ' and ' . \Ecommerce\Item\Option::colPrefix() . 'searchable = 1', 'inner']], |
|
336
|
336
|
'distinct' => \Ecommerce\Item\Option::index() |
|
337
|
337
|
]); |
|
338
|
338
|
return $items; |
|
@@ -365,7 +365,7 @@ discard block |
|
|
block discarded – undo |
|
365
|
365
|
if (is_array($counts)) { |
|
366
|
366
|
$sum = 0; |
|
367
|
367
|
foreach ($counts as $count) { |
|
368
|
|
- $sum +=$count['count']; |
|
|
368
|
+ $sum += $count['count']; |
|
369
|
369
|
} |
|
370
|
370
|
return $sum; |
|
371
|
371
|
} |
Please login to merge, or discard this patch.