File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
app/code/Magento/PageBuilder/Controller/Adminhtml/Form/Element Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 9
9
namespace Magento \PageBuilder \Controller \Adminhtml \Form \Element ;
10
10
11
11
use Magento \Catalog \Model \Product \Attribute \Source \Status ;
12
+ use Magento \Catalog \Model \Product \Visibility ;
12
13
use Magento \Framework \App \Action \HttpPostActionInterface ;
13
14
14
15
/**
@@ -159,7 +160,7 @@ public function execute()
159
160
160
161
// Only display enabled products in totals count
161
162
$ collection ->addAttributeToFilter ('status ' , Status::STATUS_ENABLED );
162
- $ collection ->setVisibility (\ Magento \ Catalog \ Model \ Product \ Visibility::VISIBILITY_BOTH );
163
+ $ collection ->setVisibility (Visibility::VISIBILITY_BOTH );
163
164
164
165
return $ this ->jsonFactory ->create ()
165
166
->setData (
You can’t perform that action at this time.
0 commit comments