Skip to content

Commit

Permalink
Disable select-all for large collections. (OpenMage#595)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericturner1 authored and rafaelpatro committed May 14, 2019
1 parent 5d54b41 commit 0149cea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ protected function _prepareMassaction()
{
$this->setMassactionIdField('subscriber_id');
$this->getMassactionBlock()->setFormFieldName('subscriber');
$this->getMassactionBlock()->setUseSelectAll(false);

$this->getMassactionBlock()->addItem('unsubscribe', array(
'label' => Mage::helper('newsletter')->__('Unsubscribe'),
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Adminhtml/Block/Review/Grid.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ protected function _prepareMassaction()
$this->setMassactionIdFilter('rt.review_id');
$this->setMassactionIdFieldOnlyIndexValue(true);
$this->getMassactionBlock()->setFormFieldName('reviews');
$this->getMassactionBlock()->setUseSelectAll(false);

$this->getMassactionBlock()->addItem('delete', array(
'label'=> Mage::helper('review')->__('Delete'),
Expand Down

0 comments on commit 0149cea

Please sign in to comment.