Pārlūkot izejas kodu

add mailinglists

andre 2 gadi atpakaļ
vecāks
revīzija
79ba13a09b

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

@@ -220,6 +220,14 @@ class AddListDataProvider extends BaseDataProvider
 
 
         $listID = $result[0]['id'];
         $listID = $result[0]['id'];
 
 
+        logModuleCall(
+            'kerioEmail',
+            __FUNCTION__,
+            $listID,
+            'Debug add ML',
+            $paramsAddMembers
+        );
+
         try {
         try {
             $result = $api->addMlUserList($paramsAddMembers, $listID);
             $result = $api->addMlUserList($paramsAddMembers, $listID);
         } catch (KerioApiException $error) {
         } catch (KerioApiException $error) {
@@ -235,13 +243,6 @@ class AddListDataProvider extends BaseDataProvider
 
 
         $api->logout();
         $api->logout();
 
 
-        logModuleCall(
-            'kerioEmail',
-            __FUNCTION__,
-            $paramsCreate,
-            'Debug add ML',
-            $paramsAddMembers
-        );
 
 
         return (new HtmlDataJsonResponse())->setMessageAndTranslate('distributionListHasBeenAdded')->setStatusSuccess();
         return (new HtmlDataJsonResponse())->setMessageAndTranslate('distributionListHasBeenAdded')->setStatusSuccess();