Skip to content

Commit e278285

Browse files
committed
MAGETWO-65026: Prepare code base for 2.0.15
2 parents 22c402d + a3fca93 commit e278285

File tree

168 files changed

+12717
-9053
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

168 files changed

+12717
-9053
lines changed

app/code/Magento/Authorizenet/Controller/Directpost/Payment/BackendResponse.php

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,6 @@
66
*/
77
namespace Magento\Authorizenet\Controller\Directpost\Payment;
88

9-
class BackendResponse extends \Magento\Authorizenet\Controller\Directpost\Payment
9+
class BackendResponse extends \Magento\Authorizenet\Controller\Directpost\Payment\Response
1010
{
11-
/**
12-
* Response action.
13-
* Action for Authorize.net SIM Relay Request.
14-
*
15-
* @return void
16-
*/
17-
public function execute()
18-
{
19-
$this->_responseAction('adminhtml');
20-
}
2111
}

app/code/Magento/Authorizenet/Model/Source/Cctype.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ class Cctype extends PaymentCctype
1717
*/
1818
public function getAllowedTypes()
1919
{
20-
return ['VI', 'MC', 'AE', 'DI', 'OT'];
20+
return ['VI', 'MC', 'AE', 'DI'];
2121
}
2222
}

app/code/Magento/Authorizenet/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"magento/framework": "100.0.*"
1414
},
1515
"type": "magento2-module",
16-
"version": "100.0.8",
16+
"version": "100.0.9",
1717
"license": [
1818
"proprietary"
1919
],

app/code/Magento/Authorizenet/view/frontend/layout/authorizenet_directpost_payment_backendresponse.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
-->
88
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/layout_generic.xsd">
99
<container name="root">
10-
<block class="Magento\Payment\Block\Transparent\Iframe" name="authorizenet_directpost_iframe" template="Magento_Payment::transparent/iframe.phtml"/>
10+
<block class="Magento\Payment\Block\Transparent\Iframe" name="authorizenet_directpost_iframe" template="Magento_Payment::transparent/backend-iframe.phtml"/>
1111
</container>
1212
</layout>

app/code/Magento/Catalog/Controller/Adminhtml/Product/Initialization/Helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public function initialize(\Magento\Catalog\Model\Product $product)
151151
foreach ($options as &$customOptionData) {
152152
if (isset($customOptionData['values'])) {
153153
$customOptionData['values'] = array_filter($customOptionData['values'], function ($valueData) {
154-
return !($valueData['option_type_id'] == '-1' && !empty($valueData['is_delete']));
154+
return !((!isset($valueData['option_type_id']) || $valueData['option_type_id'] == '-1') && !empty($valueData['is_delete']));
155155
});
156156
}
157157
}

app/code/Magento/Catalog/Model/Product/Pricing/Renderer/SalableResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ class SalableResolver implements SalableResolverInterface
1919
*/
2020
public function isSalable(\Magento\Framework\Pricing\SaleableInterface $salableItem)
2121
{
22-
return $salableItem->getCanShowPrice() !== false && $salableItem->isSalable();
22+
return $salableItem->getCanShowPrice() !== false;
2323
}
2424
}

app/code/Magento/Catalog/Test/Unit/Model/Product/Pricing/Renderer/SalableResolverTest.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ protected function setUp()
2222
{
2323
$this->product = $this->getMock(
2424
'Magento\Catalog\Model\Product',
25-
['__wakeup', 'getCanShowPrice', 'isSalable'],
25+
['__wakeup', 'getCanShowPrice'],
2626
[],
2727
'',
2828
false
@@ -40,8 +40,6 @@ public function testSalableItem()
4040
->method('getCanShowPrice')
4141
->willReturn(true);
4242

43-
$this->product->expects($this->any())->method('isSalable')->willReturn(true);
44-
4543
$result = $this->object->isSalable($this->product);
4644
$this->assertTrue($result);
4745
}
@@ -50,9 +48,7 @@ public function testNotSalableItem()
5048
{
5149
$this->product->expects($this->any())
5250
->method('getCanShowPrice')
53-
->willReturn(true);
54-
55-
$this->product->expects($this->any())->method('isSalable')->willReturn(false);
51+
->willReturn(false);
5652

5753
$result = $this->object->isSalable($this->product);
5854
$this->assertFalse($result);

app/code/Magento/Catalog/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"magento/module-catalog-sample-data": "Sample Data version:100.0.*"
3535
},
3636
"type": "magento2-module",
37-
"version": "100.0.13",
37+
"version": "100.0.14",
3838
"license": [
3939
"OSL-3.0",
4040
"AFL-3.0"

app/code/Magento/Catalog/view/adminhtml/ui_component/product_listing.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<item name="deps" xsi:type="string">product_listing.product_listing_data_source</item>
1313
</item>
1414
<item name="spinner" xsi:type="string">product_columns</item>
15+
<item name="acl" xsi:type="string">Magento_Catalog::products</item>
1516
</argument>
1617
<dataSource name="product_listing_data_source">
1718
<argument name="dataProvider" xsi:type="configurableObject">

app/code/Magento/Catalog/view/adminhtml/web/catalog/apply-to-type-switcher.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,22 @@
44
*/
55
define([
66
'jquery',
7+
'uiRegistry',
78
'Magento_Catalog/js/product/weight-handler',
89
'Magento_Catalog/catalog/type-events'
9-
], function ($, weight, productType) {
10+
], function ($, registry, weight, productType) {
1011
'use strict';
1112

1213
return {
1314

15+
/**
16+
* Init
17+
*/
18+
init: function () {
19+
this.bindAll();
20+
this._switchToTypeByApplyAttr();
21+
},
22+
1423
/**
1524
* Bind event
1625
*/
@@ -32,8 +41,7 @@ define([
3241
* Constructor component
3342
*/
3443
'Magento_Catalog/catalog/apply-to-type-switcher': function () {
35-
this.bindAll();
36-
this._switchToTypeByApplyAttr();
44+
registry.get('typeSwitcher', this.init.bind(this));
3745
},
3846

3947
/**

0 commit comments

Comments
 (0)