Skip to content

Commit

Permalink
"Sales order items" now read product data from the store they were cr…
Browse files Browse the repository at this point in the history
…eated in (#2723)
  • Loading branch information
luigifab authored and fballiano committed Dec 19, 2022
1 parent f91b7a1 commit 53ebf75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/core/Mage/Sales/Model/Order/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ public function getBuyRequest()
public function getProduct()
{
if (!$this->getData('product')) {
$product = Mage::getModel('catalog/product')->load($this->getProductId());
$product = Mage::getModel('catalog/product')->setStoreId($this->getStoreId())->load($this->getProductId());
$this->setProduct($product);
}

Expand Down

0 comments on commit 53ebf75

Please sign in to comment.