FIX EditableCountryDowndownField being broken by removal of Geoip in 3.0

This commit is contained in:
Hamish Friedlander 2013-08-29 14:03:09 +12:00
parent e03271eed4
commit d887f0e196

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