Skip to content

Commit

Permalink
Merge pull request #916 from magento-engcom/develop-prs
Browse files Browse the repository at this point in the history
Merged Pull Requests:
#2199
#6767
#5620
  • Loading branch information
Oleksii Korshenko authored Mar 12, 2017
2 parents 65d8a67 + bbd43bd commit ca2c833
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function execute()
/** @var \Magento\Backend\Model\View\Result\Page $resultPage */
$resultPage = $this->resultPageFactory->create();
$resultPage->setActiveMenu('Magento_Catalog::catalog_products');
$resultPage->getConfig()->getTitle()->prepend(__('Catalog'));
$resultPage->getConfig()->getTitle()->prepend(__('Products'));
return $resultPage;
}
}
4 changes: 2 additions & 2 deletions app/code/Magento/Catalog/etc/adminhtml/menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
<menu>
<add id="Magento_Catalog::catalog" title="Products" translate="title" module="Magento_Catalog" sortOrder="20" dependsOnModule="Magento_Catalog" resource="Magento_Catalog::catalog"/>
<add id="Magento_Catalog::catalog_products" title="Catalog" translate="title" module="Magento_Catalog" sortOrder="10" parent="Magento_Catalog::inventory" action="catalog/product/" resource="Magento_Catalog::products"/>
<add id="Magento_Catalog::catalog" title="Catalog" translate="title" module="Magento_Catalog" sortOrder="20" dependsOnModule="Magento_Catalog" resource="Magento_Catalog::catalog"/>
<add id="Magento_Catalog::catalog_products" title="Products" translate="title" module="Magento_Catalog" sortOrder="10" parent="Magento_Catalog::inventory" action="catalog/product/" resource="Magento_Catalog::products"/>
<add id="Magento_Catalog::catalog_categories" title="Categories" translate="title" module="Magento_Catalog" sortOrder="20" parent="Magento_Catalog::inventory" action="catalog/category/" resource="Magento_Catalog::categories"/>
<add id="Magento_Catalog::catalog_attributes_attributes" title="Product" translate="title" module="Magento_Catalog" sortOrder="30" parent="Magento_Backend::stores_attributes" action="catalog/product_attribute/" resource="Magento_Catalog::attributes_attributes"/>
<add id="Magento_Catalog::catalog_attributes_sets" title="Attribute Set" translate="title" module="Magento_Catalog" sortOrder="40" parent="Magento_Backend::stores_attributes" action="catalog/product_set/" resource="Magento_Catalog::sets"/>
Expand Down
1 change: 0 additions & 1 deletion lib/internal/Magento/Framework/App/RouterList.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ class RouterList implements RouterListInterface
public function __construct(\Magento\Framework\ObjectManagerInterface $objectManager, array $routerList)
{
$this->objectManager = $objectManager;
$this->routerList = $routerList;
$this->routerList = array_filter(
$routerList,
function ($item) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ public function execute($entityType, $identifier, $context = [])
{
$metadata = $this->metadataPool->getMetadata($entityType);
$connection = $this->resourceConnection->getConnectionByName($metadata->getEntityConnectionName());
$metadata = $this->metadataPool->getMetadata($entityType);
$select = $connection->select()
->from(['t' => $metadata->getEntityTable()])
->where($metadata->getIdentifierField() . ' = ?', $identifier);
Expand Down

0 comments on commit ca2c833

Please sign in to comment.