@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.

Render description changes in countdown timeline

Summary: Renders standard description was changed timeline transaction in Countdown

Test Plan: Edit Description, see transaction and change dialog.

Reviewers: btrahan, epriestley

Reviewed By: epriestley

Subscribers: epriestley, Korvin

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

+25
+25
src/applications/countdown/storage/PhabricatorCountdownTransaction.php
··· 152 152 return $tags; 153 153 } 154 154 155 + public function shouldHide() { 156 + $old = $this->getOldValue(); 157 + switch ($this->getTransactionType()) { 158 + case self::TYPE_DESCRIPTION: 159 + return ($old === null); 160 + } 161 + return parent::shouldHide(); 162 + } 163 + 164 + public function hasChangeDetails() { 165 + switch ($this->getTransactionType()) { 166 + case self::TYPE_DESCRIPTION: 167 + return ($this->getOldValue() !== null); 168 + } 169 + 170 + return parent::hasChangeDetails(); 171 + } 172 + 173 + public function renderChangeDetails(PhabricatorUser $viewer) { 174 + return $this->renderTextCorpusChangeDetails( 175 + $viewer, 176 + $this->getOldValue(), 177 + $this->getNewValue()); 178 + } 179 + 155 180 }