Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15396282
D16794.id40446.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
D16794.id40446.diff
View Options
diff --git a/src/applications/calendar/editor/PhabricatorCalendarEventEditor.php b/src/applications/calendar/editor/PhabricatorCalendarEventEditor.php
--- a/src/applications/calendar/editor/PhabricatorCalendarEventEditor.php
+++ b/src/applications/calendar/editor/PhabricatorCalendarEventEditor.php
@@ -304,28 +304,31 @@
protected function buildMailTemplate(PhabricatorLiskDAO $object) {
$id = $object->getID();
$name = $object->getName();
+ $monogram = $object->getMonogram();
return id(new PhabricatorMetaMTAMail())
- ->setSubject("E{$id}: {$name}")
- ->addHeader('Thread-Topic', "E{$id}: ".$object->getName());
+ ->setSubject("{$monogram}: {$name}")
+ ->addHeader('Thread-Topic', $monogram);
}
protected function buildMailBody(
PhabricatorLiskDAO $object,
array $xactions) {
- $description = $object->getDescription();
$body = parent::buildMailBody($object, $xactions);
- if (strlen($description)) {
- $body->addRemarkupSection(
- pht('EVENT DESCRIPTION'),
- $description);
+ $description = $object->getDescription();
+ if ($this->getIsNewObject()) {
+ if (strlen($description)) {
+ $body->addRemarkupSection(
+ pht('EVENT DESCRIPTION'),
+ $description);
+ }
}
$body->addLinkSection(
pht('EVENT DETAIL'),
- PhabricatorEnv::getProductionURI('/E'.$object->getID()));
+ PhabricatorEnv::getProductionURI($object->getURI()));
$ics_attachment = $this->newICSAttachment($object);
$body->addAttachment($ics_attachment);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 17, 1:12 PM (6 d, 13 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7384301
Default Alt Text
D16794.id40446.diff (1 KB)
Attached To
Mode
D16794: In Calendar, only include the event description in the original event mail
Attached
Detach File
Event Timeline
Log In to Comment