Added empty string as a default (first item)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@62386 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Saophalkun Ponlu 2008-09-15 05:01:37 +00:00
parent b7a2e4c8f2
commit b32cf74642

View File

@ -6,11 +6,11 @@
* @subpackage fields-relational
*/
class CountryDropdownField extends DropdownField {
function __construct($name, $title, $source = null, $value = "") {
function __construct($name, $title, $source = null, $value = "", $form=null, $emptyString="--select--") {
if(!is_array($source)) {
$source = Geoip::getCountryDropDown();
}
parent::__construct($name, $title, $source);
parent::__construct($name, $title, $source, $value, $form, $emptyString);
}
function Field() {