<?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 #14793 / Mage_CatalogRule_Model_Rule::getMatchingProductIds</title>
        <link>http://www.magentocommerce.com/bug-tracking/issue?issue=6656</link>
        <description><![CDATA[<strong>Posted:</strong> 2009-06-19 00:35:43<br/><strong>Category:</strong> Product<br/><strong>Version:</strong> 1.3.0<br/><strong>Priority:</strong> high<br/><strong>Status:</strong> resolved<br/><strong>Reported By:</strong> <a href="http://www.magentocommerce.com/boards/member/112564/">duagne</a></strong><br/><br/>Calling getMatchingProductIds() on a loaded CatalogRule rule model triggers an uncaught exception when the code attempts to explode() the  array returned from $this-&gt;getWebsiteIds().<br />
<br />
A check was added to this funciton in version 1.3.0, and if a rule has websiteIds() those ids are added to the filter of the productCollection being created.  However, the check cannot work because it attempts to &quot;explode&quot; the website ids which were already &quot;exploded&quot; during the object's afterLoad().<br />
<br />
Anyway, the fix is very easy.  Simply change line 141 of app/code/core/Mage/CatalogRule/Model/Rule.php like this:<br />
<br />
- $websiteIds = explode(',', $this-&gt;getWebsiteIds());<br />
+ $websiteIds = $this-&gt;getWebsiteIds();<br />
<br />
This is kind of a big deal to me, because our store has a custom module which calls this function and so this bug causes our entire site to crash.<br/><br/><hr/>]]></description>
    </item>
    
                    <item>
        <title>RE: Mage_CatalogRule_Model_Rule::getMatchingProductIds</title>
        <description><![CDATA[<em>#1 / Comment by <a href="http://www.magentocommerce.com/boards/member/112564/">duagne</a></em><br/><br/>I included a patch.  I promise it works :)  Can't we just get this added to the next release of Magento?]]></description>
    </item>
            <item>
        <title>RE: Mage_CatalogRule_Model_Rule::getMatchingProductIds</title>
        <description><![CDATA[<em>#2 / Comment by <a href="http://www.magentocommerce.com/boards/member/167559/">Pihtt</a></em><br/><br/>duagne's patch remove exception but it has not been added in 1.4 release.<br />
I wonder if this function getMatchingProductIds() really works. It's never used in magento core. I've tried to use it but the returned array is always empty for me.]]></description>
    </item>
        </channel>
</rss>