Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15281308
D20525.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
D20525.diff
View Options
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
@@ -3048,6 +3048,8 @@
// Set this explicitly before we start swapping out the effective actor.
$this->setActingAsPHID($this->getActingAsPHID());
+ $xaction_phids = mpull($xactions, 'getPHID');
+
$messages = array();
foreach ($targets as $target) {
$original_actor = $this->getActor();
@@ -3059,10 +3061,25 @@
$caught = null;
$mail = null;
try {
- // Reload handles for the new viewer.
- $this->loadHandles($xactions);
+ // Reload the transactions for the current viewer.
+ if ($xaction_phids) {
+ $query = PhabricatorApplicationTransactionQuery::newQueryForObject(
+ $object);
+
+ $mail_xactions = $query
+ ->setViewer($viewer)
+ ->withObjectPHIDs(array($object->getPHID()))
+ ->withPHIDs($xaction_phids)
+ ->execute();
+ } else {
+ $mail_xactions = array();
+ }
+
+ // Reload handles for the current viewer. This covers older code which
+ // emits a list of handle PHIDs upfront.
+ $this->loadHandles($mail_xactions);
- $mail = $this->buildMailForTarget($object, $xactions, $target);
+ $mail = $this->buildMailForTarget($object, $mail_xactions, $target);
if ($mail) {
if ($this->mustEncrypt) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 4, 4:44 PM (7 h, 15 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7222247
Default Alt Text
D20525.diff (1 KB)
Attached To
Mode
D20525: Fix an issue where handles could load with the incorrect viewer when building mail about changes to related objects
Attached
Detach File
Event Timeline
Log In to Comment