Skip to content

Commit 86c069a

Browse files
author
Igor Melnikov
committed
Merge remote-tracking branch 'upstream/develop' into pr
2 parents 90d6cf5 + 00efa0d commit 86c069a

File tree

77 files changed

+1971
-226
lines changed

Some content is hidden

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

77 files changed

+1971
-226
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ atlassian*
3232

3333
/pub/media/*.*
3434
!/pub/media/.htaccess
35+
/pub/media/attribute/*
36+
!/pub/media/attribute/.htaccess
3537
/pub/media/analytics/*
3638
/pub/media/catalog/*
3739
!/pub/media/catalog/.htaccess

app/code/Magento/Backend/Block/Menu.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
*
1414
* @method \Magento\Backend\Block\Menu setAdditionalCacheKeyInfo(array $cacheKeyInfo)
1515
* @method array getAdditionalCacheKeyInfo()
16+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1617
*/
1718
class Menu extends \Magento\Backend\Block\Template
1819
{
@@ -381,7 +382,7 @@ public function renderNavigation($menu, $level = 0, $limit = 0, $colBrakes = [])
381382
$itemName = substr($menuId, strrpos($menuId, '::') + 2);
382383
$itemClass = str_replace('_', '-', strtolower($itemName));
383384

384-
if (count($colBrakes) && $colBrakes[$itemPosition]['colbrake']) {
385+
if (count($colBrakes) && $colBrakes[$itemPosition]['colbrake'] && $itemPosition != 1) {
385386
$output .= '</ul></li><li class="column"><ul role="menu">';
386387
}
387388

app/code/Magento/Braintree/Gateway/Response/CardDetailsHandler.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
*/
66
namespace Magento\Braintree\Gateway\Response;
77

8-
use \Braintree\Transaction;
98
use Magento\Braintree\Gateway\Config\Config;
109
use Magento\Payment\Gateway\Helper\ContextHelper;
1110
use Magento\Sales\Api\Data\OrderPaymentInterface;

app/code/Magento/Bundle/Ui/DataProvider/Product/Form/Modifier/BundlePanel.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
use Magento\Bundle\Model\Product\Attribute\Source\Shipment\Type as ShipmentType;
1212
use Magento\Framework\Stdlib\ArrayManager;
1313
use Magento\Ui\Component\Container;
14-
use Magento\Ui\Component\DynamicRows;
1514
use Magento\Ui\Component\Form;
1615
use Magento\Ui\Component\Modal;
1716
use Magento\Catalog\Api\Data\ProductAttributeInterface;

app/code/Magento/Bundle/view/base/templates/product/price/final_price.phtml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
<?php
1212
$idSuffix = $block->getIdSuffix() ? $block->getIdSuffix() : '';
1313
/** @var \Magento\Bundle\Pricing\Render\FinalPriceBox $block */
14-
$productId = $block->getSaleableItem()->getId();
14+
15+
1516
/** @var \Magento\Bundle\Pricing\Price\FinalPrice $finalPriceModel */
1617
$finalPriceModel = $block->getPrice();
1718
$minimalPrice = $finalPriceModel->getMinimalPrice();

app/code/Magento/Catalog/Model/Product.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Magento\Framework\Pricing\SaleableInterface;
1515
use Magento\Catalog\Api\Data\ProductAttributeMediaGalleryEntryInterface;
1616
use Magento\Catalog\Model\Product\Attribute\Backend\Media\EntryConverterPool;
17-
use Magento\Catalog\Api\Data\ProductAttributeMediaGalleryEntryExtensionFactory;
1817

1918
/**
2019
* Catalog product model

app/code/Magento/Catalog/Model/ResourceModel/Category.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,7 @@ public function delete($object)
10221022
$this->getEntityManager()->delete($object);
10231023
$this->_eventManager->dispatch(
10241024
'catalog_category_delete_after_done',
1025-
['product' => $object]
1025+
['product' => $object, 'category' => $object]
10261026
);
10271027
return $this;
10281028
}

app/code/Magento/Catalog/Model/ResourceModel/Product/Collection.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -863,6 +863,7 @@ public function addCategoryFilter(\Magento\Catalog\Model\Category $category)
863863
* Filter Product by Categories
864864
*
865865
* @param array $categoriesFilter
866+
* @return $this
866867
*/
867868
public function addCategoriesFilter(array $categoriesFilter)
868869
{
@@ -876,6 +877,7 @@ public function addCategoriesFilter(array $categoriesFilter)
876877
];
877878
$this->getSelect()->where($this->getConnection()->prepareSqlCondition('e.entity_id' , $selectCondition));
878879
}
880+
return $this;
879881
}
880882

881883
/**

app/code/Magento/Catalog/view/base/web/js/price-box.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ define([
2121

2222
$.widget('mage.priceBox', {
2323
options: globalOptions,
24-
cache: {},
2524

2625
/**
2726
* Widget initialisation.
@@ -39,6 +38,7 @@ define([
3938
* Widget creating.
4039
*/
4140
_create: function createPriceBox() {
41+
this.cache = {};
4242
var box = this.element;
4343

4444
this._setDefaultsFromPriceConfig();

app/code/Magento/Checkout/Model/Type/Onepage.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
namespace Magento\Checkout\Model\Type;
77

88
use Magento\Customer\Api\AccountManagementInterface;
9-
use Magento\Customer\Api\AddressMetadataInterface as AddressMetadata;
109
use Magento\Customer\Api\AddressRepositoryInterface;
1110
use Magento\Customer\Api\CustomerRepositoryInterface;
1211
use Magento\Customer\Api\Data\CustomerInterfaceFactory as CustomerDataFactory;

0 commit comments

Comments
 (0)