Browse Source

revert pass getAllCos

andre 1 year ago
parent
commit
c42d16bba9

+ 9 - 27
app/Libs/Zimbra/Components/Api/Soap/Connection.php

@@ -294,14 +294,6 @@ class Connection implements ConnectionInterface
          * main request
          */
     
-         logModuleCall(
-            'zimbraEmail',
-            $request,
-            $this->soapClient,
-            "Debug",
-            $soapHeader
-        );
-    
         try
         {
 
@@ -320,28 +312,10 @@ class Connection implements ConnectionInterface
         catch (\SoapFault $ex)
         {
             $response->setLastError($ex->getMessage());
-
-            logModuleCall(
-                'zimbraEmail',
-                __FUNCTION__,
-                $ex,
-                "SoapFault",
-                $response
-            );
-    
         }
         catch (\Exception $ex)
         {
             $response->setLastError($ex->getMessage());
-
-            logModuleCall(
-                'zimbraEmail',
-                __FUNCTION__,
-                $ex,
-                "SoapException",
-                $response
-            );
-
         }
         
         /**
@@ -360,8 +334,16 @@ class Connection implements ConnectionInterface
             ->setHeaders($soapHeader)
             ->setXmlResponse($soapRes)
             ->response();
+    
+            logModuleCall(
+                'zimbraEmail',
+                __FUNCTION__,
+                $response,
+                "Debug",
+                $soapRes
+            );
 
-        return $response;
+            return $response;
     }
 
     /**

+ 2 - 2
app/UI/Admin/ProductConfiguration/Providers/ProductConfigurationDataProvider.php

@@ -121,8 +121,8 @@ class ProductConfigurationDataProvider extends BaseDataProvider implements Admin
 
         $manager    = new ZimbraManager();
         $repository = $manager->getApiByProduct($this->getRequestValue('id'))->soap->repository();
-//        $cosList        = $repository->cos->all();
-        $cosList = [];
+        $cosList    = $repository->cos->all();
+
         /**
          * class of services from API
          */