<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    xmlns:admin="http://webns.net/mvcb/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
    <title>Magento Issue Tracking</title>
    <link>http://www.magentocommerce.com/bug-tracking/</link>
    <description></description>
    <dc:language>en</dc:language>
    <dc:creator>MagentoCommerce</dc:creator>
    <dc:rights>Copyright {gmt_date format="%Y"}</dc:rights>
    <dc:date>{gmt_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
    <admin:generatorAgent rdf:resource="http://expressionengine.com/" />
        <item>
        <title>View Issue #21632 / Associated products don't get cached</title>
        <link>http://www.magentocommerce.com/bug-tracking/issue?issue=8713</link>
        <description><![CDATA[<strong>Posted:</strong> 2010-03-17 15:11:36<br/><strong>Category:</strong> Product<br/><strong>Version:</strong> 1.4.0.1<br/><strong>Priority:</strong> normal<br/><strong>Status:</strong> closed<br/><strong>Reported By:</strong> <a href="http://www.magentocommerce.com/boards/member/187325/">Wohlie</a></strong><br/><br/>Hi,<br />
the bug is located in the file:<br />
app/code/core/Mage/Catalog/Model/Product/Type/Grouped.php<br />
<br />
Affected methods:<br />
getAssociatedProducts($product = null)<br />
getAssociatedProductIds($product = null)<br />
<br />
The given parameter $product are getting overwriting in the foreach statement.<br />
<br />
<br />
Bug 1:<br />
Line: 117<br />
public function getAssociatedProducts($product = null)<br />
<br />
Line: 133<br />
foreach ($collection as $product) {<br />
<br />
Line: 137<br />
$this-&gt;getProduct($product)-&gt;setData($this-&gt;_keyAssociatedProducts, $associatedProducts);<br />
<br />
<br />
Bug 2:<br />
Line: 198<br />
public function getAssociatedProductIds($product = null)<br />
<br />
Line: 202<br />
foreach ($this-&gt;getAssociatedProducts($product) as $product) {<br />
<br />
Line: 205<br />
$this-&gt;getProduct($product)-&gt;setData($this-&gt;_keyAssociatedProductIds, $associatedProductIds);<br />
<br />
Line137 and 205 caches the associated products in the last item of the collection but not in the given product.<br />
<br />
Bye<br/><br/><hr/>]]></description>
    </item>
    
                    <item>
        <title>RE: Associated products don't get cached</title>
        <description><![CDATA[<em>#1 / Comment by Magento Team</em><br/><br/>Hello Wohlie,<br />
<br />
This issue was fixed. The changes will be available in the next bugfix release.<br />
<br />
Thank you.]]></description>
    </item>
        </channel>
</rss>