Skip to content

Commit 1d40050

Browse files
author
Kasian,Andrii(akasian)
committed
Merge pull request #524 from magento-dragons/mx-virtual-pr
[MX Virtual Team] Github bugs
2 parents 6f68ff9 + 007aeb2 commit 1d40050

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

app/code/Magento/Catalog/view/adminhtml/web/js/product-gallery.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ define([
380380
var $checkbox = $(event.currentTarget);
381381
var $imageContainer = $checkbox.closest('[data-role=dialog]').data('imageContainer');
382382
$imageContainer.toggleClass('hidden-for-front', $checkbox.is(':checked'));
383+
$imageContainer.find('[name*="disabled"]').val($checkbox.is(':checked') ? 1 : 0);
383384
},
384385

385386
/**

app/code/Magento/CatalogImportExport/Model/Export/Product.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -928,13 +928,14 @@ protected function collectMultirawData()
928928
array_keys($this->_websiteIdToCode),
929929
$item->getWebsites()
930930
);
931-
$rowCategories[$item->getId()] = $item->getCategoryIds();
931+
$rowCategories[$item->getId()] = array_combine($item->getCategoryIds(), $item->getCategoryIds());
932932
}
933933
$collection->clear();
934934

935935
$allCategoriesIds = array_merge(array_keys($this->_categories), array_keys($this->_rootCategories));
936+
$allCategoriesIds = array_combine($allCategoriesIds, $allCategoriesIds);
936937
foreach ($rowCategories as &$categories) {
937-
$categories = array_intersect($categories, $allCategoriesIds);
938+
$categories = array_intersect_key($categories, $allCategoriesIds);
938939
}
939940

940941
$data['rowWebsites'] = $rowWebsites;
@@ -1218,14 +1219,16 @@ protected function getCustomOptionsData($productIds)
12181219
public function filterAttributeCollection(\Magento\Eav\Model\Resource\Entity\Attribute\Collection $collection)
12191220
{
12201221
$validTypes = array_keys($this->_productTypeModels);
1222+
$validTypes = array_combine($validTypes, $validTypes);
12211223

12221224
foreach (parent::filterAttributeCollection($collection) as $attribute) {
12231225
if (in_array($attribute->getAttributeCode(), $this->_bannedAttributes)) {
12241226
$collection->removeItemByKey($attribute->getId());
12251227
continue;
12261228
}
12271229
$attrApplyTo = $attribute->getApplyTo();
1228-
$attrApplyTo = $attrApplyTo ? array_intersect($attrApplyTo, $validTypes) : $validTypes;
1230+
$attrApplyTo = array_combine($attrApplyTo, $attrApplyTo);
1231+
$attrApplyTo = $attrApplyTo ? array_intersect_key($attrApplyTo, $validTypes) : $validTypes;
12291232

12301233
if ($attrApplyTo) {
12311234
foreach ($attrApplyTo as $productType) {

app/code/Magento/Customer/Model/Customer/DataProvider.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,7 @@ public function getData()
131131
$addresses[$addressId] = $address->getData();
132132
$this->prepareAddressData($addressId, $addresses, $result['customer']);
133133
}
134-
if (!empty($addresses)) {
135-
$result['address'] = $addresses;
136-
}
134+
$result['address'] = $addresses;
137135

138136
$this->loadedData[$customer->getId()] = $result;
139137
}

app/code/Magento/LayeredNavigation/view/frontend/templates/layer/filter.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/**
1212
* Template for filter items block
1313
*
14-
* @var $block \Magento\LayeredNavigation\Block\Layer\Filter\Renderer
14+
* @var $block \Magento\LayeredNavigation\Block\Navigation\FilterRenderer
1515
*/
1616
?>
1717

0 commit comments

Comments
 (0)