andre 2 лет назад
Родитель
Сommit
8774b1ed2a
1 измененных файлов с 2 добавлено и 29 удалено
  1. 2 29
      app/UI/Client/DistributionList/Providers/AddListDataProvider.php

+ 2 - 29
app/UI/Client/DistributionList/Providers/AddListDataProvider.php

@@ -76,8 +76,8 @@ class AddListDataProvider extends BaseDataProvider
         $this->availableValues['moderator']['none'] = $lang->absoluteT('none');
         foreach($accounts as $account)
         {
-            $this->availableValues['memberList'][$account['loginName']] = $account['loginName'] . '@' . $this->maildomain;
-            $this->availableValues['moderator'][$account['loginName']] = $account['loginName'] . '@' . $this->maildomain;
+            $this->availableValues['memberList'][$account['loginName' . '@' . $this->maildomain]] = $account['loginName'] . '@' . $this->maildomain;
+            $this->availableValues['moderator'][$account['loginName' . '@' . $this->maildomain]] = $account['loginName'] . '@' . $this->maildomain;
         }
 
         /**
@@ -121,33 +121,6 @@ class AddListDataProvider extends BaseDataProvider
     {
         
         $myFormData = $this->formData;
-        /**
-         *
-         * provided aliases
-         */
-        $customEmails = explode(',',$this->formData['emailAliases']);
-        $this->formData['emailAliases'] = [];
-        foreach($customEmails as $email)
-        {
-            if ($email !== '')
-            {
-                $this->formData['emailAliases'][] = $email;
-            }
-        }
-
-        /**
-         * provided owners
-         */
-        $owners = explode(',',$this->formData['owners']);
-        $this->formData['owners'] = [];
-        foreach($owners as $email)
-        {
-            if ($email !== '')
-            {
-                $this->formData['owners'][] = $email;
-            }
-        }
-
         /**
          * custom members
          */