Skip to content

Commit 7ced70e

Browse files
authored
Fixed Index Management Select all
1 parent 808feed commit 7ced70e

File tree

1 file changed

+7
-1
lines changed
  • app/code/Magento/Backend/Block/Widget/Grid/Massaction

1 file changed

+7
-1
lines changed

app/code/Magento/Backend/Block/Widget/Grid/Massaction/Extended.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,13 @@ public function getGridIdsJson()
274274

275275
/** @var \Magento\Framework\Data\Collection $allIdsCollection */
276276
$allIdsCollection = clone $this->getParentBlock()->getCollection();
277-
$massActionIdField = $this->getParentBlock()->getMassactionIdField();
277+
278+
if($this->getMassactionIdField()) {
279+
$massActionIdField = $this->getMassactionIdField();
280+
}else {
281+
$massActionIdField = $this->getParentBlock()->getMassactionIdField();
282+
}
283+
278284
$gridIds = $allIdsCollection->setPageSize(0)->getColumnValues($massActionIdField);
279285

280286
if (!empty($gridIds)) {

0 commit comments

Comments
 (0)