Skip to content

Commit 808feed

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

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,13 @@ public function getGridIdsJson()
276276
}
277277
/** @var \Magento\Framework\Data\Collection $allIdsCollection */
278278
$allIdsCollection = clone $this->getParentBlock()->getCollection();
279-
$massActionIdField = $this->getParentBlock()->getMassactionIdField();
279+
280+
if($this->getMassactionIdField()) {
281+
$massActionIdField = $this->getMassactionIdField();
282+
}else {
283+
$massActionIdField = $this->getParentBlock()->getMassactionIdField();
284+
}
285+
280286
$gridIds = $allIdsCollection->setPageSize(0)->getColumnValues($massActionIdField);
281287
if (!empty($gridIds)) {
282288
return join(",", $gridIds);

0 commit comments

Comments
 (0)