Browse Source

add maildomain from customfield

andre 4 years ago
parent
commit
1b6171a22e
1 changed files with 1 additions and 2 deletions
  1. 1 2
      app/Http/Actions/CreateAccount.php

+ 1 - 2
app/Http/Actions/CreateAccount.php

@@ -39,8 +39,7 @@ class CreateAccount extends AddonController
 
 
             //update domain
             //update domain
             if($params['customfields']['maildomain']){
             if($params['customfields']['maildomain']){
-                $this->hosting()->domain = $params['customfields']['maildomain'];
-                $this->hosting()->save();
+                $params['domain'] = $params['customfields']['maildomain'];
             }
             }
 
 
             /**
             /**