@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Restore missing feed rendering for Maniphest points transactions

Summary: See downstream <https://phabricator.wikimedia.org/T166321>. These got dropped in refactoring, or maybe never existed.

Test Plan: {F4977212}

Reviewers: chad

Reviewed By: chad

Differential Revision: https://secure.phabricator.com/D18018

+26
+26
src/applications/maniphest/xaction/ManiphestTaskPointsTransaction.php
··· 50 50 } 51 51 } 52 52 53 + public function getTitleForFeed() { 54 + $old = $this->getOldValue(); 55 + $new = $this->getNewValue(); 56 + 57 + if ($old === null) { 58 + return pht( 59 + '%s set the point value for %s to %s.', 60 + $this->renderAuthor(), 61 + $this->renderObject(), 62 + $this->renderNewValue()); 63 + } else if ($new === null) { 64 + return pht( 65 + '%s removed the point value for %s.', 66 + $this->renderAuthor(), 67 + $this->renderObject()); 68 + } else { 69 + return pht( 70 + '%s changed the point value for %s from %s to %s.', 71 + $this->renderAuthor(), 72 + $this->renderObject(), 73 + $this->renderOldValue(), 74 + $this->renderNewValue()); 75 + } 76 + } 77 + 78 + 53 79 public function validateTransactions($object, array $xactions) { 54 80 $errors = array(); 55 81