mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-02 22:28:48 +02: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';
|
static $plural_name = 'Country Dropdowns';
|
||||||
|
|
||||||
public function getFormField() {
|
public function getFormField() {
|
||||||
return new DropdownField($this->Name, $this->Title, Geoip::getCountryDropDown());
|
return new CountryDropdownField($this->Name, $this->Title);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getValueFromData($data) {
|
public function getValueFromData($data) {
|
||||||
|
Loading…
Reference in New Issue
Block a user