Page MenuHomePhabricator

D14042.id33973.diff
No OneTemporary

D14042.id33973.diff

diff --git a/src/applications/phriction/controller/PhrictionEditController.php b/src/applications/phriction/controller/PhrictionEditController.php
--- a/src/applications/phriction/controller/PhrictionEditController.php
+++ b/src/applications/phriction/controller/PhrictionEditController.php
@@ -109,6 +109,8 @@
$notes = null;
$title = $content->getTitle();
$overwrite = false;
+ $v_cc = PhabricatorSubscribersQuery::loadSubscribersForPHID(
+ $document->getPHID());
if ($request->isFormPost()) {
@@ -118,6 +120,7 @@
$current_version = $request->getInt('contentVersion');
$v_view = $request->getStr('viewPolicy');
$v_edit = $request->getStr('editPolicy');
+ $v_cc = $request->getArr('cc');
$xactions = array();
$xactions[] = id(new PhrictionTransaction())
@@ -132,6 +135,9 @@
$xactions[] = id(new PhrictionTransaction())
->setTransactionType(PhabricatorTransactions::TYPE_EDIT_POLICY)
->setNewValue($v_edit);
+ $xactions[] = id(new PhrictionTransaction())
+ ->setTransactionType(PhabricatorTransactions::TYPE_SUBSCRIBERS)
+ ->setNewValue(array('=' => $v_cc));
$editor = id(new PhrictionTransactionEditor())
->setActor($viewer)
@@ -222,6 +228,13 @@
->setName('content')
->setID('document-textarea')
->setUser($viewer))
+ ->appendControl(
+ id(new AphrontFormTokenizerControl())
+ ->setLabel(pht('Subscribers'))
+ ->setName('cc')
+ ->setValue($v_cc)
+ ->setUser($viewer)
+ ->setDatasource(new PhabricatorMetaMTAMailableDatasource()))
->appendChild(
id(new AphrontFormPolicyControl())
->setName('viewPolicy')

File Metadata

Mime Type
text/plain
Expires
Oct 16 2024, 9:07 PM (4 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6718200
Default Alt Text
D14042.id33973.diff (1 KB)

Event Timeline