mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
1b97c827dc
commit
f85f30ac61
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user