Skip to content

Instantly share code, notes, and snippets.

anonymous
anonymous / gist:3842009
Created October 5, 2012 19:58
Every _prepareCollection Grid method in a Magento 1.7.0.2 CE instal
File: Adminhtml/Block/Api/Grid/Role.php
function _prepareCollection()
{
$collection = Mage::getModel("api/roles")->getCollection();
$this->setCollection($collection);
return parent::_prepareCollection();
}
+--------------------------------------------------+
File: Adminhtml/Block/Api/Role/Grid/User.php