BUG 7228 PM does not have a valid country code for Taiwan SOLVED

- Change the query to get the country by name
This commit is contained in:
Julio Cesar Laura
2013-02-21 10:51:32 -04:00
parent 3a22d93547
commit 61abf4a9d9

View File

@@ -57,7 +57,7 @@ class IsoCountry extends BaseIsoCountry
$oCriteria = new Criteria('workflow');
$oCriteria->addSelectColumn(IsoCountryPeer::IC_UID);
$oCriteria->addSelectColumn(IsoCountryPeer::IC_NAME);
$oCriteria->add(IsoCountryPeer::IC_NAME, $IC_NAME);
$oCriteria->add(IsoCountryPeer::IC_NAME, $IC_NAME . '%', Criteria::LIKE);
$oDataset = IsoCountryPeer::doSelectRS($oCriteria);
$oDataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
$oDataset->next();