using CountryDropDownField instead of DropdownField to make use of the extra functionality provided through CountryDropdownField, such as defautling to visitor country

This commit is contained in:
Tim Klein 2012-03-23 09:41:19 +13:00
parent bbc6d71ed8
commit c72d7f09fb

View File

@ -12,7 +12,7 @@ class EditableCountryDropdownField extends EditableFormField {
static $plural_name = 'Country Dropdowns';
public function getFormField() {
return new DropdownField($this->Name, $this->Title, Geoip::getCountryDropDown());
return new CountryDropdownField($this->Name, $this->Title);
}
public function getValueFromData($data) {