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 a69b2d9 commit 598881fCopy full SHA for 598881f
app/code/Magento/Backend/Block/Widget/Grid/Massaction/AbstractMassaction.php
@@ -281,8 +281,11 @@ public function getGridIdsJson()
281
} else {
282
$massActionIdField = $this->getParentBlock()->getMassactionIdField();
283
}
284
- $gridIds = $allIdsCollection->setPageSize(0)->getAllColumnValues($massActionIdField);
285
-
+ $allIdsCollection = clone $allIdsCollection->getSelect();
+ $allIdsCollection->reset(\Magento\Framework\DB\Select::LIMIT_COUNT);
286
+ $allIdsCollection->columns($massActionIdField, 'main_table');
287
+ $resourse = \Magento\Framework\App\ObjectManager::getInstance()->create('Magento\Framework\App\ResourceConnection');
288
+ $gridIds = $resourse->getConnection()->fetchCol($allIdsCollection);
289
if (!empty($gridIds)) {
290
return join(",", $gridIds);
291
0 commit comments