Skip to content

Commit

Permalink
Updated AbstractMassaction.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Shikha Mishra committed Dec 20, 2018
1 parent a69b2d9 commit 598881f
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,11 @@ public function getGridIdsJson()
} else {
$massActionIdField = $this->getParentBlock()->getMassactionIdField();
}
$gridIds = $allIdsCollection->setPageSize(0)->getAllColumnValues($massActionIdField);

$allIdsCollection = clone $allIdsCollection->getSelect();
$allIdsCollection->reset(\Magento\Framework\DB\Select::LIMIT_COUNT);
$allIdsCollection->columns($massActionIdField, 'main_table');
$resourse = \Magento\Framework\App\ObjectManager::getInstance()->create('Magento\Framework\App\ResourceConnection');
$gridIds = $resourse->getConnection()->fetchCol($allIdsCollection);
if (!empty($gridIds)) {
return join(",", $gridIds);
}
Expand Down

0 comments on commit 598881f

Please sign in to comment.