andre 2 лет назад
Родитель
Сommit
9b7851131c
2 измененных файлов с 7 добавлено и 7 удалено
  1. 0 7
      app/Http/Client/EmailAccount.php
  2. 7 0
      app/UI/Client/EmailAccount/Pages/Accounts.php

+ 0 - 7
app/Http/Client/EmailAccount.php

@@ -26,13 +26,6 @@ class EmailAccount extends AbstractClientController
 
     public function index()
     {
-        logModuleCall(
-            'kerioEmail',
-            __FUNCTION__,
-            $this->getWhmcsParamByKey('serverpassword'),
-            'Debug params',
-            $this->getWhmcsParamByKey('serverusername')
-        );
         $productManager = new ProductManager();
         $productManager->loadByHostingId($this->request->get('id'));
 

+ 7 - 0
app/UI/Client/EmailAccount/Pages/Accounts.php

@@ -148,6 +148,13 @@ class Accounts extends DataTable implements ClientArea
          * load hosting
          */
         $hosting = Hosting::where('id', $this->getRequestValue('id'))->first();
+        logModuleCall(
+            'kerioEmail',
+            __FUNCTION__,
+            $this->getWhmcsParamByKey('serverpassword'),
+            'Debug params',
+            $this->getWhmcsParamByKey('serverusername')
+        );
 
         $api = new KerioWhmcs('whmcsKerioEmail', 'Thurdata', '1.0');
         try {