Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Magento 1.9.3 product url Store ID compatibility #69

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
21 changes: 6 additions & 15 deletions app/code/community/TBT/Enhancedgrid/Block/Catalog/Product/Grid.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,12 +266,7 @@ protected function loadColumnOptions($attr_code)
protected function _getStore()
{
$storeId = (int) $this->getRequest()->getParam('store', 0);
$store = Mage::app()->getStore($storeId);
if ($store->getId() != $storeId) {
$store = Mage::app()->getStore(0);
}

return $store;
return Mage::app()->getStore($storeId);
}

protected function _addColumnFilterToCollection($column)
Expand Down Expand Up @@ -667,19 +662,15 @@ protected function _prepareMassaction()

public function getRowUrl($row)
{
//@nelkaake -m 16/11/10: Changed to use _getStore function
return $this->getUrl('adminhtml/catalog_product/edit',
array(
'store' => $this->_getStore(),
'id' => $row->getId(),
));
return $this->getUrl('*/*/edit', array(
'store'=>$this->getRequest()->getParam('store'),
'id'=>$row->getId())
);
}

public function getGridUrl()
{
return $this->getUrl('adminhtml/*/grid', array(
'_current' => true,
));
return $this->getUrl('*/*/grid', array('_current'=>true));
}

protected function getMADivider($dividerHeading = '-------')
Expand Down