View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006030 | OXID eShop (all versions) | 4. ------ eShop Core ------- | public | 2015-01-23 09:13 | 2016-06-07 13:35 |
Reporter | itsabug | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.8.9 / 5.1.9 | ||||
Fixed in Version | 4.10.0 / 5.3.0 | ||||
Summary | 0006030: isLoaded() not working for oxcategory | ||||
Description | isLoaded() will never return true for a category, because $this->_isLoaded is not set when oxCategory::load() is triggered. | ||||
Steps To Reproduce | 1. Create a category: oxNew('oxcategory') 2. Load it with valid id: $category->load('id') 3. Check the return value of: $return = $category->isLoaded() -> its always false. | ||||
Additional Information | Hotfix: public function load($sOXID) { $ret = parent::load($sOXID); if ($ret !== false) { $this->_isLoaded = true; } return $ret; } | ||||
Tags | No tags attached. | ||||
Theme | Azure | ||||
Browser | All | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||
|
https://github.com/OXID-eSales/oxideshop_ce/pull/391 |
|
Thanks Michael. I have just merged your pull request to our master and ported to 5.3 branch |