File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
app/code/Magento/PageBuilder
Controller/Adminhtml/Form/Element
view/adminhtml/web/js/form/element Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -135,10 +135,9 @@ public function execute()
135
135
{
136
136
/** @var \Magento\Catalog\Model\ResourceModel\Product\Collection $collection */
137
137
$ collection = $ this ->createCollection ();
138
- $ totalProducts = $ collection ->load ()-> getSize ();
138
+ $ totalProducts = $ collection ->getSize ();
139
139
$ disabledProducts = $ collection
140
140
->addAttributeToFilter ('status ' , Status::STATUS_DISABLED )
141
- ->load ()
142
141
->getSize ();
143
142
144
143
return $ this ->jsonFactory ->create ()
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ define([
74
74
} . bind ( this )
75
75
) . fail ( function ( ) {
76
76
this . value ( $t ( "An unknown error occurred. Please try again." ) ) ;
77
- } ) ;
77
+ } . bind ( this ) ) ;
78
78
} , 10 ) ,
79
79
} ) ;
80
80
} ) ;
You can’t perform that action at this time.
0 commit comments