Merge pull request #1 from silverstripe/master

UPDATE
This commit is contained in:
mi3ll 2013-09-03 23:21:06 -07:00
commit a75937368e

View File

@ -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]];
}
}