Skip to content

Commit 877a017

Browse files
author
Dmytro Yushkin
committed
Merge branch 'develop' of github.com:magento/magento2ce into MPI-bugfixes
2 parents 9aa84ed + 9a4a7eb commit 877a017

File tree

262 files changed

+488
-665
lines changed

Some content is hidden

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

262 files changed

+488
-665
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1284,6 +1284,14 @@ protected function getCustomOptionsData($productIds)
12841284
$row['max_characters'] = $option['max_characters'];
12851285
}
12861286

1287+
foreach (['file_extension', 'image_size_x', 'image_size_y'] as $fileOptionKey) {
1288+
if (!isset($option[$fileOptionKey])) {
1289+
continue;
1290+
}
1291+
1292+
$row[$fileOptionKey] = $option[$fileOptionKey];
1293+
}
1294+
12871295
$values = $option->getValues();
12881296

12891297
if ($values) {

app/code/Magento/CatalogImportExport/Model/Import/Product/Option.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ class Option extends \Magento\ImportExport\Model\Import\Entity\AbstractEntity
105105
'radio' => true,
106106
'checkbox' => true,
107107
'multiple' => true,
108+
'file' => ['sku', 'file_extension', 'image_size_x', 'image_size_y'],
108109
];
109110

110111
/**
@@ -1136,6 +1137,28 @@ private function processOptionRow($name, $optionRow)
11361137
$result[$this->columnMaxCharacters] = $optionRow['max_characters'];
11371138
}
11381139

1140+
$result = $this->addFileOptions($result, $optionRow);
1141+
1142+
return $result;
1143+
}
1144+
1145+
/**
1146+
* Add file options
1147+
*
1148+
* @param array $result
1149+
* @param array $optionRow
1150+
* @return array
1151+
*/
1152+
private function addFileOptions($result, $optionRow)
1153+
{
1154+
foreach (['file_extension', 'image_size_x', 'image_size_y'] as $fileOptionKey) {
1155+
if (!isset($optionRow[$fileOptionKey])) {
1156+
continue;
1157+
}
1158+
1159+
$result[self::COLUMN_PREFIX . $fileOptionKey] = $optionRow[$fileOptionKey];
1160+
}
1161+
11391162
return $result;
11401163
}
11411164

composer.lock

Lines changed: 59 additions & 59 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev/tests/functional/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"require": {
3-
"magento/mtf": "1.0.0-rc46",
3+
"magento/mtf": "1.0.0-rc47",
44
"php": "~5.6.0|7.0.2|~7.0.6",
55
"phpunit/phpunit": "4.1.0",
66
"phpunit/phpunit-selenium": ">=1.2"

dev/tests/functional/tests/app/Magento/Backend/Test/TestCase/ExpireAdminSessionTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ class ExpireAdminSessionTest extends Injectable
3030
{
3131
/* tags */
3232
const MVP = 'no';
33-
const DOMAIN = 'PS';
3433
/* end tags */
3534

3635
protected $systemConfigEdit;

0 commit comments

Comments
 (0)