Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15290275
D16481.id39655.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D16481.id39655.diff
View Options
diff --git a/src/applications/calendar/xaction/PhabricatorCalendarEventDescriptionTransaction.php b/src/applications/calendar/xaction/PhabricatorCalendarEventDescriptionTransaction.php
--- a/src/applications/calendar/xaction/PhabricatorCalendarEventDescriptionTransaction.php
+++ b/src/applications/calendar/xaction/PhabricatorCalendarEventDescriptionTransaction.php
@@ -39,4 +39,15 @@
->setNewText($this->getNewValue());
}
+ public function newRemarkupChanges() {
+ $changes = array();
+
+ $changes[] = $this->newRemarkupChange()
+ ->setOldValue($this->getOldValue())
+ ->setNewValue($this->getNewValue());
+
+ return $changes;
+ }
+
+
}
diff --git a/src/applications/transactions/storage/PhabricatorModularTransaction.php b/src/applications/transactions/storage/PhabricatorModularTransaction.php
--- a/src/applications/transactions/storage/PhabricatorModularTransaction.php
+++ b/src/applications/transactions/storage/PhabricatorModularTransaction.php
@@ -149,4 +149,8 @@
return parent::renderChangeDetails($viewer);
}
+ final protected function newRemarkupChanges() {
+ return $this->getTransactionImplementation()->newRemarkupChanges();
+ }
+
}
diff --git a/src/applications/transactions/storage/PhabricatorModularTransactionType.php b/src/applications/transactions/storage/PhabricatorModularTransactionType.php
--- a/src/applications/transactions/storage/PhabricatorModularTransactionType.php
+++ b/src/applications/transactions/storage/PhabricatorModularTransactionType.php
@@ -67,6 +67,10 @@
throw new PhutilMethodNotImplementedException();
}
+ public function newRemarkupChanges() {
+ return array();
+ }
+
final public function setStorage(
PhabricatorApplicationTransaction $xaction) {
$this->storage = $xaction;
@@ -253,4 +257,9 @@
return ($target == PhabricatorApplicationTransaction::TARGET_TEXT);
}
+ final protected function newRemarkupChange() {
+ return id(new PhabricatorTransactionRemarkupChange())
+ ->setTransaction($this->getStorage());
+ }
+
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 5, 11:03 PM (4 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7227801
Default Alt Text
D16481.id39655.diff (2 KB)
Attached To
Mode
D16481: Support object mentions in Calendar Event descriptions
Attached
Detach File
Event Timeline
Log In to Comment