andre 2 gadi atpakaļ
vecāks
revīzija
661ada3580
1 mainītis faili ar 6 papildinājumiem un 1 dzēšanām
  1. 6 1
      app/UI/Client/EmailAccount/Pages/Accounts.php

+ 6 - 1
app/UI/Client/EmailAccount/Pages/Accounts.php

@@ -161,13 +161,18 @@ class Accounts extends DataTable implements ClientArea
             return ['error' => $error->getMessage()];
         }
         $api->logout();
+        foreach($domains as $maildomain) {
+            if(($maildomain['name']) === $this->getWhmcsParamByKey('domain')){ 
+                $this->maildomain = $maildomain['id'];
+            }
+        }
 
         logModuleCall(
             'kerioEmail',
             __FUNCTION__,
             $domains,
             'Debug Accounts',
-            $this->getWhmcsParamByKey('customfields')['maildomain']
+            $this->maildomain
         );
 
         $productManager = new ProductManager();