File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/code/core/Mage/Directory/Helper Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -107,14 +107,14 @@ public function __construct(array $args = array())
107
107
108
108
/**
109
109
* Retrieve region collection
110
- *
110
+ * @param string|array|null $countryFilter If string, accepts iso2_code; if array, accepts iso2_code[].
111
111
* @return Mage_Directory_Model_Resource_Region_Collection
112
112
*/
113
- public function getRegionCollection ()
113
+ public function getRegionCollection ($ countryFilter = null )
114
114
{
115
115
if (!$ this ->_regionCollection ) {
116
116
$ this ->_regionCollection = Mage::getModel ('directory/region ' )->getResourceCollection ()
117
- ->addCountryFilter ($ this -> getAddress ()-> getCountryId () )
117
+ ->addCountryFilter ($ countryFilter )
118
118
->load ();
119
119
}
120
120
return $ this ->_regionCollection ;
You can’t perform that action at this time.
0 commit comments