Skip to content

Commit

Permalink
Merge pull request #54 from magento-nord/develop
Browse files Browse the repository at this point in the history
[Nord] Refactor and Test Coverage classes
  • Loading branch information
Alex Bomko committed Jan 28, 2015
2 parents 5a00464 + ab9e85c commit c67bf2c
Show file tree
Hide file tree
Showing 44 changed files with 3,610 additions and 1,653 deletions.
4 changes: 3 additions & 1 deletion app/code/Magento/Catalog/Model/Resource/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,9 @@ protected function _beforeSave(\Magento\Framework\Object $object)
}

if (!$object->getId()) {
$object->setPosition($this->_getMaxPosition($object->getPath()) + 1);
if (is_null($object->getPosition())) {
$object->setPosition($this->_getMaxPosition($object->getPath()) + 1);
}
$path = explode('/', $object->getPath());
$level = count($path);
$object->setLevel($level);
Expand Down
686 changes: 351 additions & 335 deletions app/code/Magento/CatalogImportExport/Model/Export/Product.php

Large diffs are not rendered by default.

Loading

0 comments on commit c67bf2c

Please sign in to comment.