Browse Source

get mailinglists

andre 2 years ago
parent
commit
914d49b884
1 changed files with 9 additions and 10 deletions
  1. 9 10
      app/UI/Client/DistributionList/Pages/Lists.php

+ 9 - 10
app/UI/Client/DistributionList/Pages/Lists.php

@@ -107,19 +107,18 @@ class Lists extends DataTable implements ClientArea
         );
 
         $data = [];
-//        foreach($lists as $list)
-//        {
+        foreach($lists as $list)
+        {
             /* @var $list  DistributionList */
 
-//            $tmp = [
-//                'id' => $list->getId(),
-//               'email' => $list->getName(),
-//                'name' => $list->getDataResourceA(DistributionList::ATTR_DISPLAY_NAME),
-//                'status' => $list->getDataResourceA(DistributionList::ATTR_MAIL_STATUS)
-//            ];
+            $tmp = [
+                'id' => $list['id'],
+                'email' => $list['name'] . '@' . $this->maildomain,
+                'description' => $list['description']
+            ];
 
-//           $data[] = $tmp;
-//       }
+           $data[] = $tmp;
+       }
 
         $dataProv = new ArrayDataProvider();
         $dataProv->setDefaultSorting('id', 'ASC')->setData($data);