summaryrefslogtreecommitdiffstats
path: root/apps/admin
diff options
context:
space:
mode:
Diffstat (limited to 'apps/admin')
-rw-r--r--apps/admin/modules/domain/actions/actions.class.php13
1 files changed, 10 insertions, 3 deletions
diff --git a/apps/admin/modules/domain/actions/actions.class.php b/apps/admin/modules/domain/actions/actions.class.php
index badbf03..bd1dba3 100644
--- a/apps/admin/modules/domain/actions/actions.class.php
+++ b/apps/admin/modules/domain/actions/actions.class.php
@@ -21,9 +21,6 @@ class domainActions extends autodomainActions
public function executeCreate()
{
- // populate preset values
- $this->getRequest()->setParameter('domain[creator_id]', $this->getUser()->getId());
-
$this->setTemplate("edit");
return $this->executeEdit();
}
@@ -44,4 +41,14 @@ class domainActions extends autodomainActions
{
$this->redirect("mailbox/list?filter=filter&filters[domain_id]=".$this->getRequestParameter('id'));
}
+
+ protected function updateDomainFromRequest()
+ {
+ parent::updateDomainFromRequest();
+
+ if ($this->domain->getCreatorId() == NULL)
+ {
+ $this->domain->setCreatorId($this->getUser()->getId());
+ }
+ }
}