Skip to content

Commit 2dbcc8c

Browse files
committed
Merge branch '2.2-develop' of github.com:magento/magento2ce into MAGETWO-87815
2 parents 74186cd + 6ae181a commit 2dbcc8c

File tree

21 files changed

+1276
-93
lines changed

21 files changed

+1276
-93
lines changed

app/code/Magento/Backend/Model/Auth/StorageInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ interface StorageInterface
2323
public function processLogin();
2424

2525
/**
26-
* Perform login specific actions
26+
* Perform logout specific actions
2727
*
2828
* @return $this
2929
* @abstract

app/code/Magento/Backend/etc/adminhtml/system.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@
409409
<label>Web</label>
410410
<tab>general</tab>
411411
<resource>Magento_Config::web</resource>
412-
<group id="url" translate="label" type="text" sortOrder="3" showInDefault="1" showInWebsite="0" showInStore="0">
412+
<group id="url" translate="label" type="text" sortOrder="3" showInDefault="1" showInWebsite="1" showInStore="1">
413413
<label>Url Options</label>
414414
<field id="use_store" translate="label comment" type="select" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
415415
<label>Add Store Code to Urls</label>
@@ -419,7 +419,7 @@
419419
<![CDATA[<strong style="color:red">Warning!</strong> When using Store Code in URLs, in some cases system may not work properly if URLs without Store Codes are specified in the third party services (e.g. PayPal etc.).]]>
420420
</comment>
421421
</field>
422-
<field id="redirect_to_base" translate="label" type="select" sortOrder="20" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
422+
<field id="redirect_to_base" translate="label" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
423423
<label>Auto-redirect to Base URL</label>
424424
<source_model>Magento\Config\Model\Config\Source\Web\Redirect</source_model>
425425
<comment>I.e. redirect from http://example.com/store/ to http://www.example.com/store/</comment>

app/code/Magento/Catalog/Block/Product/ImageBuilder.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
namespace Magento\Catalog\Block\Product;
77

88
use Magento\Catalog\Helper\ImageFactory as HelperFactory;
9+
use Magento\Catalog\Model\Product;
910
use Magento\Catalog\Model\Product\Image\NotLoadInfoImageException;
1011

1112
class ImageBuilder
@@ -21,7 +22,7 @@ class ImageBuilder
2122
protected $helperFactory;
2223

2324
/**
24-
* @var \Magento\Catalog\Model\Product
25+
* @var Product
2526
*/
2627
protected $product;
2728

@@ -50,10 +51,10 @@ public function __construct(
5051
/**
5152
* Set product
5253
*
53-
* @param \Magento\Catalog\Model\Product $product
54+
* @param Product $product
5455
* @return $this
5556
*/
56-
public function setProduct(\Magento\Catalog\Model\Product $product)
57+
public function setProduct(Product $product)
5758
{
5859
$this->product = $product;
5960
return $this;
@@ -79,9 +80,7 @@ public function setImageId($imageId)
7980
*/
8081
public function setAttributes(array $attributes)
8182
{
82-
if ($attributes) {
83-
$this->attributes = $attributes;
84-
}
83+
$this->attributes = $attributes;
8584
return $this;
8685
}
8786

app/code/Magento/Catalog/Controller/Category/View.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,9 @@ protected function _initCategory()
152152
*/
153153
public function execute()
154154
{
155-
if ($this->_request->getParam(\Magento\Framework\App\ActionInterface::PARAM_NAME_URL_ENCODED)) {
155+
if (!$this->_request->getParam('___from_store')
156+
&& $this->_request->getParam(self::PARAM_NAME_URL_ENCODED)
157+
) {
156158
return $this->resultRedirectFactory->create()->setUrl($this->_redirect->getRedirectUrl());
157159
}
158160
$category = $this->_initCategory();

app/code/Magento/Catalog/Controller/Product/View.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ public function execute()
7676
$productId = (int) $this->getRequest()->getParam('id');
7777
$specifyOptions = $this->getRequest()->getParam('options');
7878

79-
if ($this->getRequest()->isPost() && $this->getRequest()->getParam(self::PARAM_NAME_URL_ENCODED)) {
79+
if (!$this->_request->getParam('___from_store')
80+
&& $this->_request->isPost()
81+
&& $this->_request->getParam(self::PARAM_NAME_URL_ENCODED)
82+
) {
8083
$product = $this->_initProduct();
8184
if (!$product) {
8285
return $this->noProductRedirect();

0 commit comments

Comments
 (0)