View Issue Details

IDProjectCategoryView StatusLast Update
0003398OXID eShop (all versions)4.07. Source code, Testpublic2012-12-10 13:44
Reporterboehme Assigned To 
PriorityhighSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product VersionPast development 
Fixed in Version4.6.0_beta3 
Summary0003398: oxcategory::_oParent is undefined and changes does not effect $this->oxcategories__oxparentid
Description1. _oParent in oxCategory is never defined
2. When setting a parent category using the setter oxCategory::SetParentCategory the database field value oxcategories__oxparentid won't be updated and the assignment won't be saved.

I've checked it in 4.5.2 and nightly build
TagsNo tags attached.
ThemeBoth
BrowserAll
PHP Versionany
Database Versionany

Activities

tomas_liubinas

2012-03-26 14:35

reporter   ~0006078

Talking about 2.

I would say the task setting oxcategories__oxparentid value is not a part of oxCategory::setParentCategory() functionality. As part of this bug fix I would suggest adding additional information to method description phpdoc:

"oxCategory::setParentCategory() method has public access however it is a part of category tree building process. Basically it is supposed to be called from oxCategory::setSubCat() (which is called from oxcategoryTree::_ppBuildTree() and so on). If you need changing oxcategories__oxparentid value it would be better to do that directly."

mindaugas.rimgaila

2012-03-26 15:38

reporter   ~0006079

Defined oParent parameter in oxCategory class.