From f85f30ac61751b0a6db2cf5b018e5c43beea7a60 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Mon, 19 Mar 2012 17:06:51 +1300 Subject: [PATCH] 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. --- forms/DropdownField.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/forms/DropdownField.php b/forms/DropdownField.php index 67b04cd89..936b9a41c 100644 --- a/forms/DropdownField.php +++ b/forms/DropdownField.php @@ -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; } -} \ No newline at end of file +}