Skip to content

Commit c080bab

Browse files
committed
Merge branch 'ACP2E-1982-2' of https://github.com/magento-l3/magento2ce into PR-L3-08112023
2 parents 2beb0fd + 9d5edd1 commit c080bab

File tree

2 files changed

+0
-84
lines changed
  • app/code/Magento/Catalog/Controller/Adminhtml/Product/Initialization
  • dev/tests/integration/testsuite/Magento/Catalog/Controller/Adminhtml/Product/Initialization

2 files changed

+0
-84
lines changed

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

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -122,24 +122,6 @@ class Helper
122122
*/
123123
private $categoryLinkFactory;
124124

125-
/**
126-
* @var array
127-
*/
128-
private $productDataKeys = [
129-
'weight',
130-
'special_price',
131-
'cost',
132-
'country_of_manufacture',
133-
'description',
134-
'short_description',
135-
'meta_description',
136-
'meta_keyword',
137-
'meta_title',
138-
'page_layout',
139-
'custom_design',
140-
'gift_wrapping_price'
141-
];
142-
143125
/**
144126
* Constructor
145127
*
@@ -222,12 +204,6 @@ public function initializeFromData(Product $product, array $productData)
222204
$productData['product_has_weight'] = 0;
223205
}
224206

225-
foreach ($productData as $key => $value) {
226-
if (in_array($key, $this->productDataKeys) && $value === '') {
227-
$productData[$key] = null;
228-
}
229-
}
230-
231207
foreach (['category_ids', 'website_ids'] as $field) {
232208
if (!isset($productData[$field])) {
233209
$productData[$field] = [];

dev/tests/integration/testsuite/Magento/Catalog/Controller/Adminhtml/Product/Initialization/HelperTest.php

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

0 commit comments

Comments
 (0)