Skip to content

Commit 4380645

Browse files
committed
PB-107: Display total number of products matched into ProductsList
- populate total number of products
1 parent 1466a2e commit 4380645

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

app/code/Magento/PageBuilder/Controller/Adminhtml/Form/Element/ProductTotals.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,12 @@ private function createCollection()
134134
public function execute()
135135
{
136136
/** @var \Magento\Catalog\Model\ResourceModel\Product\Collection $collection */
137-
$collection = $this->createCollection()
138-
->getSelect()->joinLeft(
139-
['link_table' => $collection->getTable('catalog_product_super_link')],
140-
'link_table.product_id = e.entity_id',
141-
['product_id']
142-
)->where('link_table.product_id IS NULL');
137+
$collection = $this->createCollection();
138+
$collection->getSelect()->joinLeft(
139+
['link_table' => $collection->getTable('catalog_product_super_link')],
140+
'link_table.product_id = e.entity_id',
141+
['product_id']
142+
)->where('link_table.product_id IS NULL');
143143
$totalProducts = $collection->getSize();
144144
$disabledProducts = $collection
145145
->addAttributeToFilter('status', Status::STATUS_DISABLED)

0 commit comments

Comments
 (0)