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