Page MenuHomePhabricator

D17609.diff
No OneTemporary

D17609.diff

diff --git a/src/applications/transactions/storage/PhabricatorApplicationTransaction.php b/src/applications/transactions/storage/PhabricatorApplicationTransaction.php
--- a/src/applications/transactions/storage/PhabricatorApplicationTransaction.php
+++ b/src/applications/transactions/storage/PhabricatorApplicationTransaction.php
@@ -1149,12 +1149,20 @@
$this->renderHandleLink($author_phid),
$this->renderHandleLink($object_phid));
case PhabricatorTransactions::TYPE_SPACE:
- return pht(
- '%s shifted %s from the %s space to the %s space.',
- $this->renderHandleLink($author_phid),
- $this->renderHandleLink($object_phid),
- $this->renderHandleLink($old),
- $this->renderHandleLink($new));
+ if ($this->getIsCreateTransaction()) {
+ return pht(
+ '%s created %s in the %s space.',
+ $this->renderHandleLink($author_phid),
+ $this->renderHandleLink($object_phid),
+ $this->renderHandleLink($new));
+ } else {
+ return pht(
+ '%s shifted %s from the %s space to the %s space.',
+ $this->renderHandleLink($author_phid),
+ $this->renderHandleLink($object_phid),
+ $this->renderHandleLink($old),
+ $this->renderHandleLink($new));
+ }
case PhabricatorTransactions::TYPE_EDGE:
$new = ipull($new, 'dst');
$old = ipull($old, 'dst');

File Metadata

Mime Type
text/plain
Expires
Sun, Mar 23, 5:22 AM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7670184
Default Alt Text
D17609.diff (1 KB)

Event Timeline