From 54acfa51c123886c91e748aef0aaa5538a26742b Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Tue, 24 Jun 2008 01:39:13 +0000 Subject: [PATCH] Fixed domain dropdown generation --- code/Subsite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/Subsite.php b/code/Subsite.php index 59bab5d..6ede527 100644 --- a/code/Subsite.php +++ b/code/Subsite.php @@ -82,7 +82,7 @@ class Subsite extends DataObject implements PermissionProvider { new TextField('Title', 'Name of subsite:', $this->Title), new FieldGroup('URL', new TextField('Subdomain',"", $this->Subdomain), - new DropdownField('Domain','.', $this->stat('allowed_domains'), $this->Domain) + new DropdownField('Domain','.', Array::valuekey($this->stat('allowed_domains')), $this->Domain) ), // new TextField('RedirectURL', 'Redirect to URL', $this->RedirectURL), new CheckboxField('DefaultSite', 'Use this subsite as the default site', $this->DefaultSite),