Merge pull request #156 from hafriedlander/fix/countrydropdownfield

FIX EditableCountryDowndownField being broken by removal of Geoip in 3.0
This commit is contained in:
Will Rossiter 2013-08-28 23:23:22 -07:00
commit 692220451a

View File

@ -17,8 +17,8 @@ class EditableCountryDropdownField extends EditableFormField {
public function getValueFromData($data) { public function getValueFromData($data) {
if(isset($data[$this->Name])) { if(isset($data[$this->Name])) {
$source = $this->getFormField()->getSource();
return Geoip::countryCode2name($data[$this->Name]); return $source[$data[$this->Name]];
} }
} }