Skip to content

Commit c805752

Browse files
author
Shikha Mishra
authored
fixed Notification page Select Visible items issue
Fixed issue - magento #19285 On Notification page Select All and Select Visible both works same
1 parent a4b989b commit c805752

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

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

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -277,14 +277,8 @@ public function getGridIdsJson()
277277
}
278278
/** @var \Magento\Framework\Data\Collection $allIdsCollection */
279279
$allIdsCollection = clone $this->getParentBlock()->getCollection();
280-
281-
if ($this->getMassactionIdField()) {
282-
$massActionIdField = $this->getMassactionIdField();
283-
} else {
284-
$massActionIdField = $this->getParentBlock()->getMassactionIdField();
285-
}
286-
287-
$gridIds = $allIdsCollection->setPageSize(0)->getColumnValues($massActionIdField);
280+
$gridIds = $allIdsCollection->getAllIds();
281+
288282
if (!empty($gridIds)) {
289283
return join(",", $gridIds);
290284
}

0 commit comments

Comments
 (0)