ソースを参照

edit mailinglists

andre 2 年 前
コミット
f7351197bc

+ 14 - 0
app/UI/Client/DistributionList/Providers/EditListDataProvider.php

@@ -117,6 +117,20 @@ class EditListDataProvider extends AddListDataProvider
             Kerio::STATUS_ACCEPT   => $lang->absoluteT('Automatically accept')
         ];
         $this->data['subscriptionNotify'] = $list[0]['subscription']['moderatorNotification'] === TRUE ? ProductParams::SWITCHER_ENABLED : ProductParams::SWITCHER_DISABLED;
+        $this->data['memberPosting']      = $list[0]['posting']['memberPosting'];
+        $this->availableValues['memberPosting'] = [
+            Kerio::STATUS_ACCEPT   => $lang->absoluteT('Automatically accept'),
+            Kerio::STATUS_APPROVAL => $lang->absoluteT('Require moderator approval'),
+            Kerio::STATUS_REJECT   => $lang->absoluteT('Automatically reject')
+        ];
+        $this->data['nonMemberPosting']      = $list[0]['posting']['nonMemberPosting'];
+        $this->availableValues['nonMemberPosting'] = [
+            Kerio::STATUS_REJECT   => $lang->absoluteT('Automatically reject'),
+            Kerio::STATUS_APPROVAL => $lang->absoluteT('Require moderator approval'),
+            Kerio::STATUS_ACCEPT   => $lang->absoluteT('Automatically accept')
+        ];
+        $this->data['sendErrorsToModerator'] = $list[0]['subscription']['sendErrorsToModerator'] === TRUE ? ProductParams::SWITCHER_ENABLED : ProductParams::SWITCHER_DISABLED;
+
 
         /**
          * allow to check which should be removed