andre 2 жил өмнө
parent
commit
9a9e07db3a

+ 16 - 1
app/UI/Client/DistributionList/Providers/EditListDataProvider.php

@@ -99,13 +99,28 @@ class EditListDataProvider extends AddListDataProvider
             );
             );
             return ['error' => $error->getMessage()];
             return ['error' => $error->getMessage()];
         }
         }
+        $accountFields = array(
+            "id",
+            "loginName");
+        try {
+            $accounts = $api->getUsers($accountFields,$domainID);
+        } catch (KerioApiException $error) {
+            logModuleCall(
+                'kerioEmail',
+                __FUNCTION__,
+                $error,
+                'Debug Error',
+                $error->getMessage()
+            );
+            return ['error' => $error->getMessage()];
+        }
 
 
         $api->logout();
         $api->logout();
 
 
         logModuleCall(
         logModuleCall(
             'kerioEmail',
             'kerioEmail',
             __FUNCTION__,
             __FUNCTION__,
-            $list,
+            $accounts,
             'Debug Error',
             'Debug Error',
             $members
             $members
         );
         );