Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14062474
D16728.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
D16728.diff
View Options
diff --git a/src/applications/calendar/storage/PhabricatorCalendarEvent.php b/src/applications/calendar/storage/PhabricatorCalendarEvent.php
--- a/src/applications/calendar/storage/PhabricatorCalendarEvent.php
+++ b/src/applications/calendar/storage/PhabricatorCalendarEvent.php
@@ -179,11 +179,10 @@
->setName($parent->getName())
->setDescription($parent->getDescription());
- $sequence = $this->getSequenceIndex();
-
if ($start) {
$start_datetime = $start;
} else {
+ $sequence = $this->getSequenceIndex();
$start_datetime = $parent->newSequenceIndexDateTime($sequence);
if (!$start_datetime) {
@@ -201,6 +200,19 @@
->setStartDateTime($start_datetime)
->setEndDateTime($end_datetime);
+ if ($parent->isImportedEvent()) {
+ $full_uid = $parent->getImportUID().'/'.$start_datetime->getEpoch();
+
+ // NOTE: We don't attach the import source because this gets called
+ // from CalendarEventQuery while building ghosts, before we've loaded
+ // and attached sources. Possibly this sequence should be flipped.
+
+ $this
+ ->setImportAuthorPHID($parent->getImportAuthorPHID())
+ ->setImportSourcePHID($parent->getImportSourcePHID())
+ ->setImportUID($full_uid);
+ }
+
return $this;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 19, 12:28 PM (21 h, 37 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6719534
Default Alt Text
D16728.diff (1 KB)
Attached To
Mode
D16728: When generating Calendar event stubs, inherit import properties
Attached
Detach File
Event Timeline
Log In to Comment