Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15389403
D15333.id36981.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
D15333.id36981.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D15333: In Maniphest tasks, only move old owner to CC if owner changed
Attached
Detach File
Event Timeline
Log In to Comment