Parcourir la source

add mailinglists

andre il y a 2 ans
Parent
commit
d0c384f407

+ 8 - 0
api/KerioWhmcs.php

@@ -352,6 +352,14 @@ class KerioWhmcs extends KerioConnectApi {
 		$params['mebers'] = array($members);
 		$params['mlId'] = $mlId;
 
+		logModuleCall(
+            'kerioEmail',
+            __FUNCTION__,
+            $members,
+            'Debug add ML',
+            $params
+        );
+
 		$result = $this->sendRequest($method, $params);
 
 		return $result;

+ 0 - 8
app/UI/Client/DistributionList/Providers/AddListDataProvider.php

@@ -223,14 +223,6 @@ class AddListDataProvider extends BaseDataProvider
 
         $listID = $result[0]['id'];
 
-        logModuleCall(
-            'kerioEmail',
-            __FUNCTION__,
-            $listID,
-            'Debug add ML',
-            $paramsAddMembers
-        );
-
         try {
             $result = $api->addMlUserList($paramsAddMembers, $listID);
         } catch (KerioApiException $error) {