View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003398 | OXID eShop (all versions) | 4.07. Source code, Test | public | 2011-11-28 14:12 | 2012-12-10 13:44 |
Reporter | boehme | Assigned To | |||
Priority | high | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | Past development | ||||
Fixed in Version | 4.6.0_beta3 | ||||
Summary | 0003398: oxcategory::_oParent is undefined and changes does not effect $this->oxcategories__oxparentid | ||||
Description | 1. _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 | ||||
Tags | No tags attached. | ||||
Theme | Both | ||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||
|
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." |
|
Defined oParent parameter in oxCategory class. |