<?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 #9925 / Mage_Directory_Model_Region -&gt; loadByName</title>
        <link>http://www.magentocommerce.com/bug-tracking/issue?issue=4701</link>
        <description><![CDATA[<strong>Posted:</strong> 2009-01-05 23:45:43<br/><strong>Category:</strong> Orders<br/><strong>Version:</strong> 1.2.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/414/">Chris Norton</a></strong><br/><br/>I needed to get the region code for a given region name and ran into this code in the Mage_Directory_Model_Region class:<br />
<br />
    public function loadByName($name, $countryId)<br />
    {<br />
        $this-&gt;_getResource()-&gt;loadByCode($this, $name, $countryId);<br />
        return $this;<br />
    }<br />
<br />
This appears to be a bug as there is a corresponding loadByName method in the resource class but it is not being called. The method call I was attempting Mage_Directory_Model_Region -&gt; loadByName fails as well which I think confirms the bug status.<br />
<br />
I believe the solution is simply to change  $this-&gt;_getResource()-&gt;loadByCode($this, $name, $countryId) to  $this-&gt;_getResource()-&gt;loadByName($this, $name, $countryId)<br/><br/><hr/>]]></description>
    </item>
    
                    <item>
        <title>RE: Mage_Directory_Model_Region -&gt; loadByName</title>
        <description><![CDATA[<em>#1 / Comment by Magento Team</em><br/><br/>Hello Chris Norton,<br />
<br />
This issue was fixed. The changes will be available in the next bugfix release.<br />
<br />
Thank you.]]></description>
    </item>
        </channel>
</rss>