Преглед на файлове

add maildomain from customfield

andre преди 4 години
родител
ревизия
1b6171a22e
променени са 1 файла, в които са добавени 1 реда и са изтрити 2 реда
  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'];
             }
 
             /**