Skip to content

Commit c67bf2c

Browse files
author
Alex Bomko
committed
Merge pull request #54 from magento-nord/develop
[Nord] Refactor and Test Coverage classes
2 parents 5a00464 + ab9e85c commit c67bf2c

File tree

44 files changed

+3610
-1653
lines changed

Some content is hidden

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

44 files changed

+3610
-1653
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,9 @@ protected function _beforeSave(\Magento\Framework\Object $object)
236236
}
237237

238238
if (!$object->getId()) {
239-
$object->setPosition($this->_getMaxPosition($object->getPath()) + 1);
239+
if (is_null($object->getPosition())) {
240+
$object->setPosition($this->_getMaxPosition($object->getPath()) + 1);
241+
}
240242
$path = explode('/', $object->getPath());
241243
$level = count($path);
242244
$object->setLevel($level);

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

Lines changed: 351 additions & 335 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)