Browse Source

get mailinglists

andre 2 years ago
parent
commit
4936b9d47e
1 changed files with 4 additions and 7 deletions
  1. 4 7
      app/UI/Client/DistributionList/Pages/Lists.php

+ 4 - 7
app/UI/Client/DistributionList/Pages/Lists.php

@@ -98,10 +98,7 @@ class Lists extends DataTable implements ClientArea
         }
 
         $listQuery = array(
-            "userId",
-            "hasId",
             "emailAddress",
-            "fullName",
             "kind"
         );
 
@@ -110,7 +107,7 @@ class Lists extends DataTable implements ClientArea
         {
             /* @var $list  DistributionList */
             try {
-                $listCount = $api->getMlUserList($listQuery, $list['id']);
+                $members = $api->getMlUserList($listQuery, $list['id']);
             } catch (KerioApiException $error) {
                 logModuleCall(
                     'kerioEmail',
@@ -123,9 +120,9 @@ class Lists extends DataTable implements ClientArea
             logModuleCall(
                 'kerioEmail',
                 __FUNCTION__,
-                $list,
-                'Debug Error',
-                $listCount
+                count($members),
+                'Debug ML',
+                $members
             );
                 $tmp = [
                 'id' => $list['id'],