Page MenuHomePhabricator

D21592.id51407.diff
No OneTemporary

D21592.id51407.diff

diff --git a/src/applications/differential/xaction/DifferentialRevisionAuthorTransaction.php b/src/applications/differential/xaction/DifferentialRevisionAuthorTransaction.php
--- a/src/applications/differential/xaction/DifferentialRevisionAuthorTransaction.php
+++ b/src/applications/differential/xaction/DifferentialRevisionAuthorTransaction.php
@@ -95,10 +95,20 @@
}
if ($is_foist) {
- return pht(
- '%s foisted this revision upon %s.',
- $this->renderAuthor(),
- $this->renderNewHandle());
+ if ($new_phid) {
+ return pht(
+ '%s foisted this revision upon %s.',
+ $this->renderAuthor(),
+ $this->renderNewHandle());
+ } else {
+
+ // This isn't a valid transaction that can be applied, but happens in
+ // the preview if you temporarily delete the tokenizer value.
+
+ return pht(
+ '%s foisted this revision upon...',
+ $this->renderAuthor());
+ }
}
return pht(

File Metadata

Mime Type
text/plain
Expires
Tue, Mar 25, 4:41 PM (4 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7719793
Default Alt Text
D21592.id51407.diff (1005 B)

Event Timeline