Pārlūkot izejas kodu

edit mailinglists

andre 2 gadi atpakaļ
vecāks
revīzija
dfb3de13c9

+ 5 - 8
app/UI/Client/DistributionList/Providers/EditListDataProvider.php

@@ -193,6 +193,11 @@ class EditListDataProvider extends AddListDataProvider
             'SenderThisList' => $lang->absoluteT('SenderThisList')
         ];
 
+        $this->data['customMember'] = $extMembers;
+        $this->data['memberList'] = $intMembers;
+        foreach($availableMembers as $availableMember) {
+            $this->availableValues['memberList'][$availableMember] = $availableMember;
+        }
 
         /**
          * allow to check which should be removed
@@ -201,14 +206,6 @@ class EditListDataProvider extends AddListDataProvider
 //        $this->availableValues['emailAliasesActually'] = $this->data['emailAliasesActually']    = $list->getResourceAliases();
 //        $this->availableValues['ownersActually']       = $this->data['ownersActually']          = $list->getResourceOwners();
 
-//        $this->data['subscriptionRequest']   = $list->getDataResourceA(DistributionList::ATTR_SUBSCRIPTION_REQUEST);
-//        $this->data['unsubscriptionRequest'] = $list->getDataResourceA(DistributionList::ATTR_UNSUBSCRIPTION_REQUEST);
-//        $this->data['replyDisplayName']      = $list->getDataResourceA(DistributionList::REPLY_TO_DISPLAY);
-//        $this->data['replyEmailAddress']     = $list->getDataResourceA(DistributionList::REPLY_TO_ADDRESS);
-//        $this->data['sharesNotify']          = $list->getDataResourceA(DistributionList::ATTR_NOTIFY_SHARES) === Kerio::ATTR_ENABLED ? ProductParams::SWITCHER_ENABLED : ProductParams::SWITCHER_DISABLED;
-//        $this->data['hideGal']               = $list->getDataResourceA(DistributionList::ATTR_HIDE_IN_GAL) === Kerio::ATTR_ENABLED ? ProductParams::SWITCHER_ENABLED : ProductParams::SWITCHER_DISABLED;
-//        $this->data['receiveMail']           = $list->getDataResourceA(DistributionList::ATTR_MAIL_STATUS) === Kerio::ENABLED ? ProductParams::SWITCHER_ENABLED : ProductParams::SWITCHER_DISABLED;
-//        $this->data['replyEmail']            = $list->getDataResourceA(DistributionList::REPLY_TO_ENABLED) === Kerio::ATTR_ENABLED ? ProductParams::SWITCHER_ENABLED : ProductParams::SWITCHER_DISABLED;
 
         /**
          * available members