View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0005321||OXID eShop (all versions)||1.01. Products (product, categories, manufacturer, promotions etc.)||public||2013-07-30 12:09||2015-04-15 16:00|
|Target Version||Fixed in Version||4.7.7 / 5.0.7|
|Summary||0005321: Loading of articles is not performed in other subshops|
|Description||Articles are not loaded from any other subshop except the active one.|
|Steps To Reproduce||Create the second empty shop on the demo shop. Try to execute the following code when active shop is the empty one:|
$oArt = oxNew("oxarticle");
The product is not loaded.
|Additional Information||The problem is that product data is loaded from db view. |
So the quick fix (for the hotfix) would be enabling the core table usage in oxArticle::_loadFromDb() method:
$this->_blForceCoreTableUsage = true;
(and restoring it back to the previously set value)
in the same way as it's done in oxBase::load() method.
The correct fix:
Replace $this->_loadFromDb() usage with the parent::load() usage in oxArticle::load() method as the intention of these methods are completely the same.
|Tags||No tags attached.|