Page MenuHomePhabricator

D15333.id36981.diff
No OneTemporary

D15333.id36981.diff

diff --git a/src/applications/maniphest/editor/ManiphestTransactionEditor.php b/src/applications/maniphest/editor/ManiphestTransactionEditor.php
--- a/src/applications/maniphest/editor/ManiphestTransactionEditor.php
+++ b/src/applications/maniphest/editor/ManiphestTransactionEditor.php
@@ -1033,16 +1033,22 @@
));
break;
case ManiphestTransaction::TYPE_OWNER:
+ // If this is a no-op update, don't expand it.
+ $old_value = $object->getOwnerPHID();
+ $new_value = $xaction->getNewValue();
+ if ($old_value === $new_value) {
+ continue;
+ }
+
// When a task is reassigned, move the old owner to the subscriber
// list so they're still in the loop.
- $owner_phid = $object->getOwnerPHID();
- if ($owner_phid) {
+ if ($old_value) {
$results[] = id(new ManiphestTransaction())
->setTransactionType(PhabricatorTransactions::TYPE_SUBSCRIBERS)
->setIgnoreOnNoEffect(true)
->setNewValue(
array(
- '+' => array($owner_phid => $owner_phid),
+ '+' => array($old_value => $old_value),
));
}
break;

File Metadata

Mime Type
text/plain
Expires
Sun, Mar 16, 5:12 AM (6 d, 18 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7388508
Default Alt Text
D15333.id36981.diff (1 KB)

Event Timeline