This repository was archived by the owner on Apr 29, 2019. It is now read-only.
File tree 1 file changed +8
-6
lines changed
app/code/Magento/Ui/Component/MassAction 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 7
7
namespace Magento \Ui \Component \MassAction ;
8
8
9
9
use Magento \Framework \Api \FilterBuilder ;
10
- use Magento \Framework \Exception \LocalizedException ;
11
- use Magento \Framework \View \Element \UiComponentFactory ;
12
10
use Magento \Framework \App \RequestInterface ;
13
- use Magento \Framework \View \Element \UiComponentInterface ;
14
11
use Magento \Framework \Data \Collection \AbstractDb ;
12
+ use Magento \Framework \Exception \LocalizedException ;
15
13
use Magento \Framework \View \Element \UiComponent \DataProvider \DataProviderInterface ;
14
+ use Magento \Framework \View \Element \UiComponentFactory ;
15
+ use Magento \Framework \View \Element \UiComponentInterface ;
16
16
17
17
/**
18
+ * Filter component.
19
+ *
18
20
* @api
19
21
* @since 100.0.2
20
22
*/
@@ -99,10 +101,10 @@ public function getCollection(AbstractDb $collection)
99
101
throw new LocalizedException (__ ('An item needs to be selected. Select and try again. ' ));
100
102
}
101
103
}
102
-
104
+
103
105
$ filterIds = $ this ->getFilterIds ();
104
- if ( is_array ($ selected )){
105
- $ filterIds = array_unique (array_merge ($ this -> getFilterIds () , $ selected ));
106
+ if ( \ is_array ($ selected )) {
107
+ $ filterIds = array_unique (array_merge ($ filterIds , $ selected ));
106
108
}
107
109
$ collection ->addFieldToFilter (
108
110
$ collection ->getIdFieldName (),
You can’t perform that action at this time.
0 commit comments