Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15333727
D18730.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
955 B
Referenced Files
None
Subscribers
None
D18730.id.diff
View Options
diff --git a/src/applications/differential/editor/DifferentialTransactionEditor.php b/src/applications/differential/editor/DifferentialTransactionEditor.php
--- a/src/applications/differential/editor/DifferentialTransactionEditor.php
+++ b/src/applications/differential/editor/DifferentialTransactionEditor.php
@@ -1537,7 +1537,13 @@
if ($object->isDraft() && $auto_undraft) {
$active_builds = $this->hasActiveBuilds($object);
if (!$active_builds) {
+ // When Harbormaster moves a revision out of the draft state, we
+ // attribute the action to the revision author since this is more
+ // natural and more useful.
+ $author_phid = $object->getAuthorPHID();
+
$xaction = $object->getApplicationTransactionTemplate()
+ ->setAuthorPHID($author_phid)
->setTransactionType(
DifferentialRevisionRequestReviewTransaction::TRANSACTIONTYPE)
->setOldValue(false)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 9, 4:19 AM (1 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7386438
Default Alt Text
D18730.id.diff (955 B)
Attached To
Mode
D18730: Attribute revision promotion from "Draft" to "Needs Review" to the author
Attached
Detach File
Event Timeline
Log In to Comment