File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
app/code/Magento/PageBuilder/Controller/Adminhtml/Form/Element Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,6 @@ public function execute()
143
143
{
144
144
/** @var \Magento\Catalog\Model\ResourceModel\Product\Collection $collection */
145
145
$ collection = $ this ->createCollection ();
146
- $ this ->stockFilter ->addInStockFilterToCollection ($ collection );
147
146
$ collection ->getSelect ()->joinLeft (
148
147
['super_link_table ' => $ collection ->getTable ('catalog_product_super_link ' )],
149
148
'super_link_table.product_id = e.entity_id ' ,
@@ -161,6 +160,7 @@ public function execute()
161
160
// Only display enabled products in totals count
162
161
$ collection ->addAttributeToFilter ('status ' , Status::STATUS_ENABLED );
163
162
$ collection ->setVisibility (Visibility::VISIBILITY_BOTH );
163
+ $ this ->stockFilter ->addIsInStockFilterToCollection ($ collection );
164
164
165
165
return $ this ->jsonFactory ->create ()
166
166
->setData (
You can’t perform that action at this time.
0 commit comments