Page MenuHomePhabricator

D13355.id32315.diff
No OneTemporary

D13355.id32315.diff

diff --git a/src/applications/calendar/controller/PhabricatorCalendarEventEditController.php b/src/applications/calendar/controller/PhabricatorCalendarEventEditController.php
--- a/src/applications/calendar/controller/PhabricatorCalendarEventEditController.php
+++ b/src/applications/calendar/controller/PhabricatorCalendarEventEditController.php
@@ -437,10 +437,11 @@
->setValue($end_disabled);
}
- $description = id(new AphrontFormTextAreaControl())
+ $description = id(new PhabricatorRemarkupControl())
->setLabel(pht('Description'))
->setName('description')
- ->setValue($description);
+ ->setValue($description)
+ ->setUser($viewer);
$view_policies = id(new AphrontFormPolicyControl())
->setUser($viewer)
diff --git a/src/applications/calendar/controller/PhabricatorCalendarEventViewController.php b/src/applications/calendar/controller/PhabricatorCalendarEventViewController.php
--- a/src/applications/calendar/controller/PhabricatorCalendarEventViewController.php
+++ b/src/applications/calendar/controller/PhabricatorCalendarEventViewController.php
@@ -362,10 +362,16 @@
pht('Icon'),
$icon_display);
+ $description = PhabricatorMarkupEngine::renderOneObject(
+ id(new PhabricatorMarkupOneOff())->setContent($event->getDescription()),
+ 'default',
+ $viewer);
+
$properties->addSectionHeader(
- pht('Description'),
- PHUIPropertyListView::ICON_SUMMARY);
- $properties->addTextContent($event->getDescription());
+ pht('Description'),
+ PHUIPropertyListView::ICON_SUMMARY);
+
+ $properties->addTextContent($description);
return $properties;
}

File Metadata

Mime Type
text/plain
Expires
Wed, Dec 25, 1:59 PM (11 h, 19 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6926582
Default Alt Text
D13355.id32315.diff (1 KB)

Event Timeline