View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004935 | OXID eShop (all versions) | 4.07. Source code, Test | public | 2013-02-15 12:05 | 2023-11-29 15:21 |
Reporter | dominik_ziegler | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | sometimes |
Status | resolved | Resolution | fixed | ||
Product Version | 4.6.6 revision 54646 | ||||
Summary | 0004935: oxBasketItem::getArticle returns oxOrderArticle instance instead of oxArticle | ||||
Description | Creating a new virtual basket from existing order with the code below results in errors when using select lists. The method getBasketArticles of oxBasket iterates over the article objects, fetches the object via oxBasketItem::getArticle and tries to execute "getSelectlist", but instead of oxArticle it has an oxOrderArticle where this method does not exist. Called in a method in oxOrder: $basket = $this->_getOrderBasket(); $this->_addOrderArticlesToBasket($basket, $this->getOrderArticles(true)); $basket->calculateBasket(true); $basket->getBasketArticles() causes an error. I think the problem is, that oxBasketItem::initFromOrderArticle sets the object in the class variable _oArticle and then returns it with oxBasketItem::getArticle, although the method should only return oxArticle. | ||||
Tags | No tags attached. | ||||
Theme | Azure, Mobile | ||||
Browser | All | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||