mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Merge pull request #156 from hafriedlander/fix/countrydropdownfield
FIX EditableCountryDowndownField being broken by removal of Geoip in 3.0
This commit is contained in:
commit
692220451a
@ -17,8 +17,8 @@ class EditableCountryDropdownField extends EditableFormField {
|
||||
|
||||
public function getValueFromData($data) {
|
||||
if(isset($data[$this->Name])) {
|
||||
|
||||
return Geoip::countryCode2name($data[$this->Name]);
|
||||
$source = $this->getFormField()->getSource();
|
||||
return $source[$data[$this->Name]];
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user