File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
app/code/Magento/PageBuilder/Controller/Adminhtml/Form/Element Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -136,10 +136,15 @@ public function execute()
136
136
/** @var \Magento\Catalog\Model\ResourceModel\Product\Collection $collection */
137
137
$ collection = $ this ->createCollection ();
138
138
$ collection ->getSelect ()->joinLeft (
139
- ['link_table ' => $ collection ->getTable ('catalog_product_super_link ' )],
139
+ ['super_link_table ' => $ collection ->getTable ('catalog_product_super_link ' )],
140
+ 'super_link_table.product_id = e.entity_id ' ,
141
+ ['product_id ' ]
142
+ )->joinLeft (
143
+ ['link_table ' => $ collection ->getTable ('catalog_product_link ' )],
140
144
'link_table.product_id = e.entity_id ' ,
141
145
['product_id ' ]
142
- )->where ('link_table.product_id IS NULL ' );
146
+ )->where ('link_table.product_id IS NULL and super_link_table.product_id IS NULL ' );
147
+
143
148
$ totalProducts = $ collection ->getSize ();
144
149
$ disabledProducts = $ collection
145
150
->addAttributeToFilter ('status ' , Status::STATUS_DISABLED )
You can’t perform that action at this time.
0 commit comments