Browse Source

new settings section

andre 5 months ago
parent
commit
5f178e353b
1 changed files with 9 additions and 9 deletions
  1. 9 9
      app/UI/Client/Setting/Pages/Settings.php

+ 9 - 9
app/UI/Client/Setting/Pages/Settings.php

@@ -128,14 +128,6 @@ class Settings extends DataTable implements ClientArea
 
         $api->logout();
 
-        logModuleCall(
-            'kerioEmail',
-            __FUNCTION__,
-            $domains,
-            'Debug Settings',
-            $this->params
-        );
-
         foreach($domains as $domain) {
             if(($domain['name']) === $maildomain){ 
                 $aliasList = $domain['aliasList'];
@@ -152,10 +144,18 @@ class Settings extends DataTable implements ClientArea
 
         // get settings from product configuration
         $productManager = new ProductManager();
-        $productManager->loadById($this->params['pid']);
+        $productManager->loadById($this->getWhmcsParamByKey('pid'));
         $this->spfConfig = $productManager->get('spf_string');
         $this->dmarcConfig = $productManager->get('dmarc_string');
 
+        logModuleCall(
+            'kerioEmail',
+            __FUNCTION__,
+            $this,
+            'Debug Settings',
+            $aliasList
+        );
+
         /**
          * format model to array
          */