We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 07f1f01 + d552dc4 commit acd8d51Copy full SHA for acd8d51
app/code/Magento/Catalog/Model/ResourceModel/Category.php
@@ -920,7 +920,7 @@ public function changeParent(
920
$childrenCount = $this->getChildrenCount($category->getId()) + 1;
921
$table = $this->getEntityTable();
922
$connection = $this->getConnection();
923
- $levelFiled = $connection->quoteIdentifier('level');
+ $levelField = $connection->quoteIdentifier('level');
924
$pathField = $connection->quoteIdentifier('path');
925
926
/**
@@ -960,7 +960,7 @@ public function changeParent(
960
$newPath . '/'
961
) . ')'
962
),
963
- 'level' => new \Zend_Db_Expr($levelFiled . ' + ' . $levelDisposition)
+ 'level' => new \Zend_Db_Expr($levelField . ' + ' . $levelDisposition)
964
],
965
[$pathField . ' LIKE ?' => $category->getPath() . '/%']
966
);
0 commit comments