Page MenuHomePhabricator

D16771.diff
No OneTemporary

D16771.diff

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

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)

Event Timeline