BUGFIX DropdownField with SS_Map as the source should use empty string

as the value, and the empty string text as the title, not the other way
around.
This commit is contained in:
Sean Harvey 2012-03-19 17:06:51 +13:00
parent 1b97c827dc
commit f85f30ac61

View File

@ -134,8 +134,8 @@ class DropdownField extends FormField {
// SQLMap needs this to add an empty value to the options
if(is_object($source) && $this->emptyString) {
$options[] = new ArrayData(array(
'Value' => $this->emptyString,
'Title' => '',
'Value' => '',
'Title' => $this->emptyString,
));
}
@ -247,4 +247,4 @@ class DropdownField extends FormField {
$this->disabled = $disabled;
return $this;
}
}
}