Skip to content

Commit 345624e

Browse files
committed
PB-229: Story Bug for PB-107: Incorrect Number of Products
1 parent bc857c7 commit 345624e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ public function execute()
141141
['product_id']
142142
)->joinLeft(
143143
['link_table' => $collection->getTable('catalog_product_link')],
144-
'link_table.product_id = e.entity_id',
144+
'link_table.linked_product_id = e.entity_id',
145145
['product_id']
146-
)->where('link_table.product_id IS NULL OR super_link_table.product_id IS NULL');
146+
)->where('link_table.linked_product_id IS NULL AND super_link_table.product_id IS NULL');
147147

148148
$totalProducts = $collection->getSize();
149149
$disabledProducts = $collection

0 commit comments

Comments
 (0)