Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14347930
D16771.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
D16771.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
@@ -11,6 +11,15 @@
return pht('Calendar');
}
+ public function getCreateObjectTitle($author, $object) {
+ return pht('%s created this event.', $author);
+ }
+
+ public function getCreateObjectTitleForFeed($author, $object) {
+ return pht('%s created %s.', $author, $object);
+ }
+
+
protected function shouldApplyInitialEffects(
PhabricatorLiskDAO $object,
array $xactions) {
diff --git a/src/applications/calendar/import/PhabricatorCalendarImportEngine.php b/src/applications/calendar/import/PhabricatorCalendarImportEngine.php
--- a/src/applications/calendar/import/PhabricatorCalendarImportEngine.php
+++ b/src/applications/calendar/import/PhabricatorCalendarImportEngine.php
@@ -471,6 +471,12 @@
$xactions = array();
$uid = $node->getUID();
+ if (!$event->getID()) {
+ $xactions[] = id(new PhabricatorCalendarEventTransaction())
+ ->setTransactionType(PhabricatorTransactions::TYPE_CREATE)
+ ->setNewValue(true);
+ }
+
$name = $node->getName();
if (!strlen($name)) {
if (strlen($uid)) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 4:04 AM (20 h, 59 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6909469
Default Alt Text
D16771.diff (1 KB)
Attached To
Mode
D16771: Apply a TYPE_CREATE transaction when importing events to improve strings in timeline
Attached
Detach File
Event Timeline
Log In to Comment