We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bd2476 commit 1f0779eCopy full SHA for 1f0779e
app/code/core/Mage/Review/Block/Form.php
@@ -81,6 +81,10 @@ public function __construct()
81
*/
82
public function getProductInfo()
83
{
84
+ $product = Mage::registry('current_product');
85
+ if (is_object($product) && ($product->getId() == $this->getRequest()->getParam('id')))
86
+ return $product;
87
+
88
$product = Mage::getModel('catalog/product');
89
return $product->load($this->getRequest()->getParam('id'));
90
}
0 commit comments