Skip to content

Commit

Permalink
Merge remote branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
ling adam committed May 14, 2018
2 parents 7fbe012 + 00bce98 commit 71e7d25
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public function preDispatch(){
protected function _initAction()
{
$this->loadLayout()
->_setActiveMenu('catalog')
->_setActiveMenu('salesreports')
->_addBreadcrumb($this->__('salesreports'), $this->__('New Product Sales Report'))
;
return $this;
Expand All @@ -34,6 +34,6 @@ public function viewAction(){
$this->renderLayout();
}
protected function _isAllowed(){
return Mage::getSingleton('admin/session')->isAllowed('admin/salesreports/product');
return Mage::getSingleton('admin/session')->isAllowed('admin/salesreports/new');
}
}
4 changes: 4 additions & 0 deletions app/code/local/Martin/SalesReports/etc/adminhtml.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
<title>Product Reports</title>
<sort_order>1</sort_order>
</product>
<new>
<title>New Product Reports</title>
<sort_order>2</sort_order>
</new>
</children>
</salesreports>
</children>
Expand Down

0 comments on commit 71e7d25

Please sign in to comment.