Skip to content

Commit aaa8291

Browse files
committed
Merge pull request #319 from magento-goinc/MAGETWO-37718
[MX][Virtual Team, GoInc] Public GitHub Issues, Bug Fixes
2 parents 4f8cc5c + 473655c commit aaa8291

File tree

30 files changed

+938
-637
lines changed

30 files changed

+938
-637
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Refactored controller actions in the Product area
1010
* Moved commands cache.php, indexer.php, log.php, test.php, compiler.php, singletenant\_compiler.php, generator.php, pack.php, deploy.php and file\_assembler.php to the new bin/magento CLI framework
1111
* Data Migration Tool
12-
* The Data Migraiton Tool is published in the separate [repository](https://github.com/magento/data-migration-tool-ce, "Data Migration Tool repository")
12+
* The Data Migraiton Tool is published in the separate [repository](https://github.com/magento/data-migration-tool-ce "Data Migration Tool repository")
1313
* Fixed bugs
1414
* Fixed an issue where error appeared during placing order with virtual product
1515
* Fixed an issue where billing and shipping sections didn't contain address information on order print

app/code/Magento/Bundle/CustomerData/BundleItem.php

Lines changed: 0 additions & 47 deletions
This file was deleted.

app/code/Magento/Bundle/composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
"magento/framework": "0.74.0-beta9",
1919
"magento/module-quote": "0.74.0-beta9",
2020
"magento/module-media-storage": "0.74.0-beta9",
21-
"magento/module-msrp": "0.74.0-beta9",
2221
"magento/magento-composer-installer": "*"
2322
},
2423
"suggest": {

app/code/Magento/Bundle/etc/frontend/di.xml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,4 @@
1616
</argument>
1717
</arguments>
1818
</type>
19-
<type name="Magento\Checkout\CustomerData\ItemPoolInterface">
20-
<arguments>
21-
<argument name="itemMap" xsi:type="array">
22-
<item name="bundle" xsi:type="string">Magento\Bundle\CustomerData\BundleItem</item>
23-
</argument>
24-
</arguments>
25-
</type>
2619
</config>

app/code/Magento/Catalog/Block/Adminhtml/Product/Attribute/Edit/Tab/Advanced.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,9 @@ protected function _prepareForm()
194194
);
195195

196196
$this->_eventManager->dispatch('product_attribute_form_build', ['form' => $form]);
197+
if ($attributeObject->getId() && !$attributeObject->getIsUserDefined()) {
198+
$form->getElement('is_global')->setDisabled(1);
199+
}
197200
$this->setForm($form);
198201
return $this;
199202
}

app/code/Magento/Catalog/Controller/Adminhtml/Category/Save.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,15 @@ public function execute()
142142
$category->setData('use_post_data_config', $this->getRequest()->getPost('use_config'));
143143

144144
try {
145+
$categoryResource = $category->getResource();
146+
if ($category->hasCustomDesignTo()) {
147+
$categoryResource->getAttribute('custom_design_from')->setMaxValue($category->getCustomDesignTo());
148+
}
145149
$validate = $category->validate();
146150
if ($validate !== true) {
147151
foreach ($validate as $code => $error) {
148152
if ($error === true) {
149-
$attribute = $category->getResource()->getAttribute($code)->getFrontend()->getLabel();
153+
$attribute = $categoryResource->getAttribute($code)->getFrontend()->getLabel();
150154
throw new \Magento\Framework\Exception\LocalizedException(
151155
__('Attribute "%1" is required.', $attribute)
152156
);

app/code/Magento/Catalog/Model/Product/Attribute/Backend/Startdate.php renamed to app/code/Magento/Catalog/Model/Attribute/Backend/Startdate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright © 2015 Magento. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
namespace Magento\Catalog\Model\Product\Attribute\Backend;
6+
namespace Magento\Catalog\Model\Attribute\Backend;
77

88
/**
99
*

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use Magento\Framework\Api\ImageProcessorInterface;
1616
use Magento\Framework\Api\SearchCriteriaInterface;
1717
use Magento\Framework\Api\SortOrder;
18-
use Magento\Framework\App\Filesystem\DirectoryList;
1918
use Magento\Framework\Exception\InputException;
2019
use Magento\Framework\Exception\NoSuchEntityException;
2120
use Magento\Framework\Exception\StateException;
@@ -219,6 +218,9 @@ public function get($sku, $editMode = false, $storeId = null, $forceReload = fal
219218
if ($editMode) {
220219
$product->setData('_edit_mode', true);
221220
}
221+
if ($storeId !== null) {
222+
$product->setData('store_id', $storeId);
223+
}
222224
$product->load($productId);
223225
$this->instances[$sku][$cacheKey] = $product;
224226
$this->instancesById[$product->getId()][$cacheKey] = $product;
@@ -234,7 +236,6 @@ public function getById($productId, $editMode = false, $storeId = null, $forceRe
234236
$cacheKey = $this->getCacheKey(func_get_args());
235237
if (!isset($this->instancesById[$productId][$cacheKey]) || $forceReload) {
236238
$product = $this->productFactory->create();
237-
238239
if ($editMode) {
239240
$product->setData('_edit_mode', true);
240241
}

app/code/Magento/Catalog/Model/Resource/Category/Attribute/Source/Mode.php

Lines changed: 0 additions & 31 deletions
This file was deleted.

app/code/Magento/Catalog/Model/Resource/Category/Tree.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -590,8 +590,7 @@ protected function _createCollectionDataSelect($sorted = true, $optionalAttribut
590590
$select->joinLeft(
591591
[$tableDefault => $attribute->getBackend()->getTable()],
592592
sprintf(
593-
'%1$s.entity_id=e.entity_id AND %1$s.attribute_id=%2$d' .
594-
' AND %1$s.entity_type_id=e.entity_type_id AND %1$s.store_id=%3$d',
593+
'%1$s.entity_id=e.entity_id AND %1$s.attribute_id=%2$d AND %1$s.store_id=%3$d',
595594
$tableDefault,
596595
$attribute->getId(),
597596
\Magento\Store\Model\Store::DEFAULT_STORE_ID
@@ -600,8 +599,7 @@ protected function _createCollectionDataSelect($sorted = true, $optionalAttribut
600599
)->joinLeft(
601600
[$tableStore => $attribute->getBackend()->getTable()],
602601
sprintf(
603-
'%1$s.entity_id=e.entity_id AND %1$s.attribute_id=%2$d' .
604-
' AND %1$s.entity_type_id=e.entity_type_id AND %1$s.store_id=%3$d',
602+
'%1$s.entity_id=e.entity_id AND %1$s.attribute_id=%2$d AND %1$s.store_id=%3$d',
605603
$tableStore,
606604
$attribute->getId(),
607605
$this->getStoreId()

0 commit comments

Comments
 (0)