Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14763635
D14665.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D14665.diff
View Options
diff --git a/src/applications/maniphest/controller/ManiphestTaskDetailController.php b/src/applications/maniphest/controller/ManiphestTaskDetailController.php
--- a/src/applications/maniphest/controller/ManiphestTaskDetailController.php
+++ b/src/applications/maniphest/controller/ManiphestTaskDetailController.php
@@ -143,6 +143,9 @@
->setViewer($viewer)
->buildEditEngineCommentView($task);
+ $timeline->setQuoteRef($monogram);
+ $comment_view->setTransactionTimeline($timeline);
+
return $this->newPage()
->setTitle($title)
->setCrumbs($crumbs)
diff --git a/src/applications/maniphest/editor/ManiphestEditEngine.php b/src/applications/maniphest/editor/ManiphestEditEngine.php
--- a/src/applications/maniphest/editor/ManiphestEditEngine.php
+++ b/src/applications/maniphest/editor/ManiphestEditEngine.php
@@ -73,7 +73,6 @@
// - Don't show "change status" for closed tasks.
// - Don't show "change owner" for closed tasks.
// - Don't let users change a task status to "Duplicate".
- // - Make sure "Quote" works.
// - When closing an unassigned task, assign the closing user.
// - Make sure implicit CCs on actions are working reasonably.
diff --git a/src/applications/paste/controller/PhabricatorPasteViewController.php b/src/applications/paste/controller/PhabricatorPasteViewController.php
--- a/src/applications/paste/controller/PhabricatorPasteViewController.php
+++ b/src/applications/paste/controller/PhabricatorPasteViewController.php
@@ -64,8 +64,9 @@
),
$source_code);
+ $monogram = $paste->getMonogram();
$crumbs = $this->buildApplicationCrumbs()
- ->addTextCrumb('P'.$paste->getID(), '/P'.$paste->getID());
+ ->addTextCrumb($monogram, '/'.$monogram);
$timeline = $this->buildTransactionTimeline(
$paste,
@@ -75,6 +76,9 @@
->setViewer($viewer)
->buildEditEngineCommentView($paste);
+ $timeline->setQuoteRef($monogram);
+ $comment_view->setTransactionTimeline($timeline);
+
return $this->newPage()
->setTitle($paste->getFullName())
->setCrumbs($crumbs)
diff --git a/src/applications/transactions/view/PhabricatorApplicationTransactionCommentView.php b/src/applications/transactions/view/PhabricatorApplicationTransactionCommentView.php
--- a/src/applications/transactions/view/PhabricatorApplicationTransactionCommentView.php
+++ b/src/applications/transactions/view/PhabricatorApplicationTransactionCommentView.php
@@ -23,6 +23,7 @@
private $currentVersion;
private $versionedDraft;
private $editTypes;
+ private $transactionTimeline;
public function setObjectPHID($object_phid) {
$this->objectPHID = $object_phid;
@@ -110,8 +111,16 @@
return $this->editTypes;
}
- public function render() {
+ public function setTransactionTimeline(
+ PhabricatorApplicationTransactionView $timeline) {
+
+ $timeline->setQuoteTargetID($this->getCommentID());
+
+ $this->transactionTimeline = $timeline;
+ return $this;
+ }
+ public function render() {
$user = $this->getUser();
if (!$user->isLoggedIn()) {
$uri = id(new PhutilURI('/login/'))
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 24, 12:12 PM (19 h, 10 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7040273
Default Alt Text
D14665.diff (3 KB)
Attached To
Mode
D14665: Make "Quote" work with EditEngine in Paste and Maniphest
Attached
Detach File
Event Timeline
Log In to Comment