diff --git a/src/applications/project/customfield/PhabricatorProjectDescriptionField.php b/src/applications/project/customfield/PhabricatorProjectDescriptionField.php --- a/src/applications/project/customfield/PhabricatorProjectDescriptionField.php +++ b/src/applications/project/customfield/PhabricatorProjectDescriptionField.php @@ -3,6 +3,26 @@ final class PhabricatorProjectDescriptionField extends PhabricatorProjectStandardCustomField { + public function renderPropertyViewValue(array $handles) { + $value = $this->getProxy()->getFieldValue(); + + if (!strlen($value)) { + return null; + } + + // TODO: Once this stabilizes, it would be nice to let fields batch this. + // For now, an extra query here and there on object detail pages isn't the + // end of the world. + + $viewer = $this->getViewer(); + return PhabricatorMarkupEngine::renderOneObject( + id(new PhabricatorMarkupOneOff()) + ->setContent($value) + ->setPReserveLinebreaks(true), + 'default', + $viewer); + } + public function createFields($object) { return PhabricatorStandardCustomField::buildStandardFields( $this,