Page MenuHomePhabricator

D15153.diff
No OneTemporary

D15153.diff

diff --git a/src/applications/people/customfield/PhabricatorUserBlurbField.php b/src/applications/people/customfield/PhabricatorUserBlurbField.php
--- a/src/applications/people/customfield/PhabricatorUserBlurbField.php
+++ b/src/applications/people/customfield/PhabricatorUserBlurbField.php
@@ -58,6 +58,13 @@
->setLabel($this->getFieldName());
}
+ public function getApplicationTransactionRemarkupBlocks(
+ PhabricatorApplicationTransaction $xaction) {
+ return array(
+ $xaction->getNewValue(),
+ );
+ }
+
public function renderPropertyViewLabel() {
return null;
}
@@ -67,10 +74,11 @@
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() {

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 8:48 AM (21 h, 7 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6910031
Default Alt Text
D15153.diff (1008 B)

Event Timeline