Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 56c1b33

Browse files
author
Shikha Mishra
authored
Updated Filter.php
Fixed #19258 Incorrect orders updated
1 parent 9c36f6f commit 56c1b33

File tree

1 file changed

+6
-2
lines changed
  • app/code/Magento/Ui/Component/MassAction

1 file changed

+6
-2
lines changed

app/code/Magento/Ui/Component/MassAction/Filter.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,14 @@ public function getCollection(AbstractDb $collection)
9999
throw new LocalizedException(__('An item needs to be selected. Select and try again.'));
100100
}
101101
}
102-
102+
103+
$filterIds = $this->getFilterIds();
104+
if(is_array($selected)){
105+
$filterIds = array_unique(array_merge($this->getFilterIds(), $selected));
106+
}
103107
$collection->addFieldToFilter(
104108
$collection->getIdFieldName(),
105-
['in' => $this->getFilterIds()]
109+
['in' => $filterIds]
106110
);
107111

108112
return $collection;

0 commit comments

Comments
 (0)