Skip to content

Commit c030426

Browse files
author
Oleksandr Gorkun
committed
MC-13958: Additional Permissions for Design settings
1 parent 7e64d22 commit c030426

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@ class Category extends \Magento\Catalog\Model\AbstractModel implements
224224
*/
225225
private $authorization;
226226

227-
228227
/**
229228
* @param \Magento\Framework\Model\Context $context
230229
* @param \Magento\Framework\Registry $registry
@@ -958,7 +957,6 @@ public function beforeSave()
958957
return parent::beforeSave();
959958
}
960959

961-
962960
/**
963961
* Retrieve anchors above
964962
*

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@ protected function _processPositions($category, $newParent, $afterCategoryId)
10281028
if ($afterCategoryId) {
10291029
$select = $connection->select()->from($table, 'position')->where('entity_id = :entity_id');
10301030
$position = $connection->fetchOne($select, ['entity_id' => $afterCategoryId]);
1031-
$position += 1;
1031+
$position++;
10321032
} else {
10331033
$position = 1;
10341034
}

0 commit comments

Comments
 (0)