diff --git a/app/code/Magento/Authorization/sql/authorization_setup/install-2.0.0.php b/app/code/Magento/Authorization/sql/authorization_setup/install-2.0.0.php index c1824fc742dd0..b8b717aa9aa4a 100644 --- a/app/code/Magento/Authorization/sql/authorization_setup/install-2.0.0.php +++ b/app/code/Magento/Authorization/sql/authorization_setup/install-2.0.0.php @@ -9,16 +9,7 @@ $installer->startSetup(); -if ($installer->getConnection()->isTableExists($installer->getTable('admin_role'))) { - /** - * Rename existing 'admin_role' table into 'authorization_role' (to avoid forcing Magento re-installation) - * TODO: This conditional logic can be removed some time after pull request is delivered to the mainline - */ - $installer->getConnection()->renameTable( - $installer->getTable('admin_role'), - $installer->getTable('authorization_role') - ); -} elseif (!$installer->getConnection()->isTableExists($installer->getTable('authorization_role'))) { +if (!$installer->getConnection()->isTableExists($installer->getTable('authorization_role'))) { /** * Create table 'authorization_role' */ @@ -84,16 +75,7 @@ $installer->getConnection()->createTable($table); } -if ($installer->getConnection()->isTableExists($installer->getTable('admin_rule'))) { - /** - * Rename existing 'admin_rule' table into 'authorization_rule' (to avoid forcing Magento re-installation) - * TODO: This conditional logic can be removed some time after pull request is delivered to the mainline - */ - $installer->getConnection()->renameTable( - $installer->getTable('admin_rule'), - $installer->getTable('authorization_rule') - ); -} elseif (!$installer->getConnection()->isTableExists($installer->getTable('authorization_rule'))) { +if (!$installer->getConnection()->isTableExists($installer->getTable('authorization_rule'))) { /** * Create table 'authorization_rule' */ diff --git a/app/code/Magento/Backend/Controller/Adminhtml/System/Account/Save.php b/app/code/Magento/Backend/Controller/Adminhtml/System/Account/Save.php index ef5303c8fd99f..0bbf7b3e73c93 100644 --- a/app/code/Magento/Backend/Controller/Adminhtml/System/Account/Save.php +++ b/app/code/Magento/Backend/Controller/Adminhtml/System/Account/Save.php @@ -54,11 +54,9 @@ public function execute() if ($this->_objectManager->get('Magento\Framework\Locale\Validator')->isValid($interfaceLocale)) { $user->setInterfaceLocale($interfaceLocale); - $this->_objectManager->get( - 'Magento\Backend\Model\Locale\Manager' - )->switchBackendInterfaceLocale( - $interfaceLocale - ); + /** @var \Magento\Backend\Model\Locale\Manager $localeManager */ + $localeManager = $this->_objectManager->get('Magento\Backend\Model\Locale\Manager'); + $localeManager->switchBackendInterfaceLocale($interfaceLocale); } /** Before updating admin user data, ensure that password of current admin user is entered and is correct */ $currentUserPasswordField = \Magento\User\Block\User\Edit\Tab\Main::CURRENT_USER_PASSWORD_FIELD; @@ -75,7 +73,10 @@ public function execute() $user->setPasswordConfirmation($passwordConfirmation); } $user->save(); - $user->sendPasswordResetNotificationEmail(); + /** Send password reset email notification only when password was changed */ + if ($password !== '') { + $user->sendPasswordResetNotificationEmail(); + } $this->messageManager->addSuccess(__('The account has been saved.')); } catch (\Magento\Framework\Model\Exception $e) { $this->messageManager->addMessages($e->getMessages()); diff --git a/app/code/Magento/Backend/Controller/Adminhtml/System/Config/Save.php b/app/code/Magento/Backend/Controller/Adminhtml/System/Config/Save.php index 1ef9ae740f28f..4f71d0d73cf37 100644 --- a/app/code/Magento/Backend/Controller/Adminhtml/System/Config/Save.php +++ b/app/code/Magento/Backend/Controller/Adminhtml/System/Config/Save.php @@ -186,7 +186,10 @@ public function execute() $resultRedirect = $this->resultRedirectFactory->create(); return $resultRedirect->setPath( 'adminhtml/system_config/edit', - ['_current' => ['section', 'website', 'store']] + [ + '_current' => ['section', 'website', 'store'], + '_nosid' => true + ] ); } } diff --git a/app/code/Magento/Catalog/Model/Product/Media/AttributeManagement.php b/app/code/Magento/Catalog/Model/Product/Media/AttributeManagement.php index 0ff1a0edafaeb..3babcdc846db6 100644 --- a/app/code/Magento/Catalog/Model/Product/Media/AttributeManagement.php +++ b/app/code/Magento/Catalog/Model/Product/Media/AttributeManagement.php @@ -5,9 +5,9 @@ */ namespace Magento\Catalog\Model\Product\Media; -use \Magento\Catalog\Api\ProductMediaAttributeManagementInterface; -use \Magento\Store\Model\StoreManagerInterface; -use \Magento\Catalog\Model\Product; +use Magento\Catalog\Api\ProductMediaAttributeManagementInterface; +use Magento\Store\Model\StoreManagerInterface; +use Magento\Catalog\Model\Product; class AttributeManagement implements ProductMediaAttributeManagementInterface { diff --git a/app/code/Magento/Catalog/etc/webapi.xml b/app/code/Magento/Catalog/etc/webapi.xml index 15ec243390f61..60a33162a7c86 100644 --- a/app/code/Magento/Catalog/etc/webapi.xml +++ b/app/code/Magento/Catalog/etc/webapi.xml @@ -27,7 +27,7 @@ - + @@ -52,7 +52,7 @@ - + @@ -64,7 +64,7 @@ - + @@ -100,7 +100,7 @@ - + @@ -148,7 +148,7 @@ - + diff --git a/app/code/Magento/Catalog/view/frontend/templates/product/list/toolbar.phtml b/app/code/Magento/Catalog/view/frontend/templates/product/list/toolbar.phtml index c328aaae0cca5..73b69a68947ef 100644 --- a/app/code/Magento/Catalog/view/frontend/templates/product/list/toolbar.phtml +++ b/app/code/Magento/Catalog/view/frontend/templates/product/list/toolbar.phtml @@ -10,7 +10,7 @@ * * @var $this \Magento\Catalog\Block\Product\ProductList\Toolbar */ -use \Magento\Catalog\Model\Product\ProductList\Toolbar; +use Magento\Catalog\Model\Product\ProductList\Toolbar; ?> getCollection()->getSize()): ?>
diff --git a/app/code/Magento/Catalog/view/frontend/templates/product/list/toolbar/amount.phtml b/app/code/Magento/Catalog/view/frontend/templates/product/list/toolbar/amount.phtml index 474b358abc419..7f078a5b29cf0 100644 --- a/app/code/Magento/Catalog/view/frontend/templates/product/list/toolbar/amount.phtml +++ b/app/code/Magento/Catalog/view/frontend/templates/product/list/toolbar/amount.phtml @@ -10,7 +10,7 @@ * * @var $this \Magento\Catalog\Block\Product\ProductList\Toolbar */ -use \Magento\Catalog\Model\Product\ProductList\Toolbar; +use Magento\Catalog\Model\Product\ProductList\Toolbar; ?>

getLastPageNum() > 1): ?> diff --git a/app/code/Magento/Catalog/view/frontend/templates/product/list/toolbar/limiter.phtml b/app/code/Magento/Catalog/view/frontend/templates/product/list/toolbar/limiter.phtml index f381de8694d36..7b3c5f75b5f65 100644 --- a/app/code/Magento/Catalog/view/frontend/templates/product/list/toolbar/limiter.phtml +++ b/app/code/Magento/Catalog/view/frontend/templates/product/list/toolbar/limiter.phtml @@ -10,7 +10,7 @@ * * @var $this \Magento\Catalog\Block\Product\ProductList\Toolbar */ -use \Magento\Catalog\Model\Product\ProductList\Toolbar; +use Magento\Catalog\Model\Product\ProductList\Toolbar; ?>