Przeglądaj źródła

return getLastErrorCode in CreatAccount

andre 2 lat temu
rodzic
commit
cedd84b74a

+ 1 - 1
app/Libs/Zimbra/Components/Api/Soap/Services/Create/CreateAccount.php

@@ -154,7 +154,7 @@ class CreateAccount extends ApiService
          */
         if(!$result)
         {
-            $this->setError($this->api->account->getError());
+            $this->setError($this->api->account->getLastResult()->getLastErrorCode());
             return false;
         }
 

+ 0 - 8
app/Libs/Zimbra/Components/Api/Soap/Services/Create/CreateAccountAlias.php

@@ -55,14 +55,6 @@ class CreateAccountAlias extends ApiService
          */
         $result = $this->api->account->createAlias($aliasAccount);
 
-        logModuleCall(
-            'zimbraEmail',
-            __FUNCTION__,
-            $this->api->account->getLastResult(),
-            'debug',
-            $this->api->account->getLastResult()->getLastErrorCode()
-        );
-
         /**
          * problem with create account
          */