We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4c7ada commit 808feedCopy full SHA for 808feed
app/code/Magento/Backend/Block/Widget/Grid/Massaction/AbstractMassaction.php
@@ -276,7 +276,13 @@ public function getGridIdsJson()
276
}
277
/** @var \Magento\Framework\Data\Collection $allIdsCollection */
278
$allIdsCollection = clone $this->getParentBlock()->getCollection();
279
- $massActionIdField = $this->getParentBlock()->getMassactionIdField();
+
280
+ if($this->getMassactionIdField()) {
281
+ $massActionIdField = $this->getMassactionIdField();
282
+ }else {
283
+ $massActionIdField = $this->getParentBlock()->getMassactionIdField();
284
+ }
285
286
$gridIds = $allIdsCollection->setPageSize(0)->getColumnValues($massActionIdField);
287
if (!empty($gridIds)) {
288
return join(",", $gridIds);
0 commit comments