mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 15:05:42 +00:00
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:
parent
bbc6d71ed8
commit
c72d7f09fb
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user