diff --git a/src/applications/people/customfield/PhabricatorUserBlurbField.php b/src/applications/people/customfield/PhabricatorUserBlurbField.php index 3221a33202..04fb419918 100644 --- a/src/applications/people/customfield/PhabricatorUserBlurbField.php +++ b/src/applications/people/customfield/PhabricatorUserBlurbField.php @@ -1,80 +1,88 @@ value = $object->loadUserProfile()->getBlurb(); } public function getOldValueForApplicationTransactions() { return $this->getObject()->loadUserProfile()->getBlurb(); } public function getNewValueForApplicationTransactions() { return $this->value; } public function applyApplicationTransactionInternalEffects( PhabricatorApplicationTransaction $xaction) { $this->getObject()->loadUserProfile()->setBlurb($xaction->getNewValue()); } public function readValueFromRequest(AphrontRequest $request) { $this->value = $request->getStr($this->getFieldKey()); } public function renderEditControl(array $handles) { return id(new PhabricatorRemarkupControl()) ->setUser($this->getViewer()) ->setName($this->getFieldKey()) ->setValue($this->value) ->setLabel($this->getFieldName()); } + public function getApplicationTransactionRemarkupBlocks( + PhabricatorApplicationTransaction $xaction) { + return array( + $xaction->getNewValue(), + ); + } + public function renderPropertyViewLabel() { return null; } public function renderPropertyViewValue(array $handles) { $blurb = $this->getObject()->loadUserProfile()->getBlurb(); if (!strlen($blurb)) { return null; } - return PhabricatorMarkupEngine::renderOneObject( - id(new PhabricatorMarkupOneOff())->setContent($blurb), - 'default', - $this->getViewer()); + + $viewer = $this->getViewer(); + $view = new PHUIRemarkupView($viewer, $blurb); + + return $view; } public function getStyleForPropertyView() { return 'block'; } }