mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 14:00:56 +01:00
Provide a missing feed transaction string for space creation
Summary: Fixes T12502. This transaction probably should not be getting picked for feed rendering, but it currently does get selected in some cases. This should probably be revisited eventually (e.g., when Maniphest moves to ModularTransactions) but just fix the brokenness for now. Test Plan: - Created a task in a space. - Viewed feed. - Saw the story render with readable text. {F4555747} Reviewers: chad Reviewed By: chad Maniphest Tasks: T12502 Differential Revision: https://secure.phabricator.com/D17609
This commit is contained in:
parent
9ebb5f8cda
commit
5e44711218
1 changed files with 14 additions and 6 deletions
|
@ -1149,12 +1149,20 @@ abstract class PhabricatorApplicationTransaction
|
|||
$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');
|
||||
|
|
Loading…
Reference in a new issue