Selaa lähdekoodia

edit mailinglists

andre 2 vuotta sitten
vanhempi
commit
693f4bcb98

+ 9 - 8
app/UI/Client/DistributionList/Providers/EditListDataProvider.php

@@ -303,6 +303,15 @@ class EditListDataProvider extends AddListDataProvider
             );
             );
             return ['error' => $error->getMessage()];
             return ['error' => $error->getMessage()];
         }
         }
+
+        logModuleCall(
+            'kerioEmail',
+            __FUNCTION__,
+            $paramsAdd,
+            'Debug Formdata',
+            $paramsDel
+        );
+
         // delete mebers
         // delete mebers
         try {
         try {
             $api->delMlUserList($paramsDel, $this->formData['id']);
             $api->delMlUserList($paramsDel, $this->formData['id']);
@@ -341,14 +350,6 @@ class EditListDataProvider extends AddListDataProvider
         $productManager = new ProductManager();
         $productManager = new ProductManager();
         $productManager->loadByHostingId($hid);
         $productManager->loadByHostingId($hid);
 
 
-        logModuleCall(
-            'kerioEmail',
-            __FUNCTION__,
-            $paramsAdd,
-            'Debug Formdata',
-            $paramsDel
-        );
-
         return (new HtmlDataJsonResponse())->setMessageAndTranslate('distributionListHasBeenUpdated')->setStatusSuccess();
         return (new HtmlDataJsonResponse())->setMessageAndTranslate('distributionListHasBeenUpdated')->setStatusSuccess();
 
 
     }
     }