Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/code/core/Mage/Adminhtml/Block/Cache/Grid.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ protected function _prepareCollection()
*/
protected function _afterLoadCollection()
{
return $this;
return parent::_afterLoadCollection();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ protected function _prepareColumns()
'index' => 'attribute_set_name',
]);

return $this;
return parent::_prepareColumns();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ protected function _prepareColumns()
],
);

return $this;
return parent::_prepareColumns();
}

public function getRowUrl($row)
Expand Down
2 changes: 1 addition & 1 deletion app/code/core/Mage/Adminhtml/Block/Review/Product/Grid.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ protected function _prepareColumns()
);
}

return $this;
return Mage_Adminhtml_Block_Widget_Grid::_prepareColumns();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ protected function _prepareColumns()
'renderer' => 'adminhtml/system_email_template_grid_renderer_action',
],
);
return $this;
return parent::_prepareColumns();
}

public function getRowUrl($row)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ protected function _prepareColumns()
'options' => Mage::getSingleton('catalog/product_status')->getOptionArray(),
],
);
return $this;
return Mage_Adminhtml_Block_Widget_Grid::_prepareColumns();
}

/**
Expand Down
17 changes: 17 additions & 0 deletions app/code/core/Mage/Adminhtml/Block/Widget/Grid.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,11 @@ public function getMainButtonsHtml()
*/
public function setCollection($collection)
{
Mage::dispatchEvent('adminhtml_grid_set_collection', [
'grid' => $this,
'collection' => $collection,
]);

$this->_collection = $collection;
}

Expand Down Expand Up @@ -697,6 +702,7 @@ protected function _preparePage()
*/
protected function _prepareColumns()
{
Mage::dispatchEvent('adminhtml_grid_prepare_columns_after', ['grid' => $this]);
$this->sortColumnsByOrder();
return $this;
}
Expand Down Expand Up @@ -766,6 +772,7 @@ protected function _prepareMassactionColumn()
*/
protected function _prepareGrid()
{
Mage::dispatchEvent('adminhtml_grid_prepare_columns_before', ['grid' => $this]);
$this->_prepareColumns();
$this->_prepareMassactionBlock();
$this->_prepareCollection();
Expand Down Expand Up @@ -793,6 +800,11 @@ protected function _beforeToHtml()
*/
protected function _afterLoadCollection()
{
Mage::dispatchEvent('adminhtml_grid_after_load_collection', [
'grid' => $this,
'collection' => $this->getCollection(),
]);

return $this;
}

Expand All @@ -801,6 +813,11 @@ protected function _afterLoadCollection()
*/
protected function _beforeLoadCollection()
{
Mage::dispatchEvent('adminhtml_grid_before_load_collection', [
'grid' => $this,
'collection' => $this->getCollection(),
]);

return $this;
}

Expand Down
2 changes: 1 addition & 1 deletion app/code/core/Mage/Index/Block/Adminhtml/Process/Grid.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ protected function _afterLoadCollection()
}
}

return $this;
return parent::_afterLoadCollection();
}

/**
Expand Down
Loading