Page MenuHomePhabricator

D10233.diff
No OneTemporary

D10233.diff

diff --git a/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php b/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
--- a/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
+++ b/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
@@ -2096,10 +2096,21 @@
PhabricatorLiskDAO $object,
array $xactions) {
- return array(
+ $phids = array(
$object->getPHID(),
$this->getActingAsPHID(),
);
+
+ if ($object instanceof PhabricatorProjectInterface) {
+ $project_phids = PhabricatorEdgeQuery::loadDestinationPHIDs(
+ $object->getPHID(),
+ PhabricatorProjectObjectHasProjectEdgeType::EDGECONST);
+ foreach ($project_phids as $project_phid) {
+ $phids[] = $project_phid;
+ }
+ }
+
+ return $phids;
}

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 20, 4:35 PM (22 h, 3 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6717701
Default Alt Text
D10233.diff (899 B)

Event Timeline