New category saved from the repository has an invalid path #39738
Labels
Reported on 2.4.7
Indicates original Magento version for the Issue report.
Triage: Dev.Experience
Issue related to Developer Experience and needs help with Triage to Confirm or Reject it
Preconditions and environment
Steps to reproduce
Simplified version:
Expected result
Path is like :
1/256
(where 256 is the freshly created category ID)Actual result
Path is:
1
Additional information
It seems that
magento2/app/code/Magento/Catalog/Model/ResourceModel/Category.php
Line 310 in 727294d
$object->setPath($object->getPath() . '/');
So the following is called
magento2/app/code/Magento/Catalog/Model/ResourceModel/Category.php
Line 335 in 727294d
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: