Explorar o código

add maildomain from customfield

andre %!s(int64=4) %!d(string=hai) anos
pai
achega
1b6171a22e
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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
             if($params['customfields']['maildomain']){
-                $this->hosting()->domain = $params['customfields']['maildomain'];
-                $this->hosting()->save();
+                $params['domain'] = $params['customfields']['maildomain'];
             }
 
             /**