Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F19383676
D10014.id24071.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D10014.id24071.diff
View Options
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,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 28, 1:06 AM (2 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8323241
Default Alt Text
D10014.id24071.diff (1 KB)
Attached To
Mode
D10014: Preserve line breaks in standard remarkup fields
Attached
Detach File
Event Timeline
Log In to Comment