Explorar el Código

delete account

andre hace 2 años
padre
commit
db3cb6fdd1

+ 0 - 8
app/UI/Client/EmailAccount/Providers/AccountDataProvider.php

@@ -198,14 +198,6 @@ class AccountDataProvider extends BaseDataProvider
             }
         }
         $api->logout();
-        
-        logModuleCall(
-            'kerioEmail',
-            __FUNCTION__,
-            $this->request->get('massActions'),
-            'Debug Data',
-            $this
-        );
 
         /**
          * return success

+ 8 - 2
app/UI/Client/EmailAccount/Providers/DeleteAccountDataProvider.php

@@ -44,6 +44,14 @@ class DeleteAccountDataProvider extends BaseDataProvider
         $productManager = new ProductManager();
         $productManager->loadByHostingId($hid);
 
+            logModuleCall(
+                'kerioEmail',
+                __FUNCTION__,
+                $this->formData,
+                'Debug Error',
+                $this->data
+            );
+
         return (new HtmlDataJsonResponse())->setMessageAndTranslate('emailAccountHasBeenDeleted')->setStatusSuccess();
 
     }
@@ -66,8 +74,6 @@ class DeleteAccountDataProvider extends BaseDataProvider
          */
         foreach($this->request->get('massActions') as $id)
         {
-            $service->setFormData(['id' => $id]);
-
 
         }