Permalink
Browse files

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.
  • Loading branch information...
halkyon committed Mar 19, 2012
1 parent 1b97c82 commit f85f30ac61751b0a6db2cf5b018e5c43beea7a60
Showing with 3 additions and 3 deletions.
  1. +3 −3 forms/DropdownField.php
View
@@ -134,8 +134,8 @@ function Field($properties = array()) {
// 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 @@ function setDisabled($disabled = true) {
$this->disabled = $disabled;
return $this;
}
-}
+}

0 comments on commit f85f30a

Please sign in to comment.