Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13971768
D14042.id33950.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D14042.id33950.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Oct 18 2024, 3:12 PM (4 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6718200
Default Alt Text
D14042.id33950.diff (1 KB)
Attached To
Mode
D14042: Add CCs to Phriction Edit page
Attached
Detach File
Event Timeline
Log In to Comment