From 15c9287d4307d0a35e3b7184a3697d2957d6fe0b Mon Sep 17 00:00:00 2001 From: epriestley Date: Fri, 22 Mar 2013 13:07:12 -0700 Subject: [PATCH] Emit "did edit task" event correctly for Maniphest comments Summary: We emit "did edit task" properly elsewhere, but only emit "will edit task" in this case. Emit the second event correctly. Test Plan: Added a listener, verified it got hit. Reviewers: skrul, chad Reviewed By: skrul CC: aran Differential Revision: https://secure.phabricator.com/D5419 --- .../controller/ManiphestTransactionSaveController.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/applications/maniphest/controller/ManiphestTransactionSaveController.php b/src/applications/maniphest/controller/ManiphestTransactionSaveController.php index 934f182301..c3b3823a3d 100644 --- a/src/applications/maniphest/controller/ManiphestTransactionSaveController.php +++ b/src/applications/maniphest/controller/ManiphestTransactionSaveController.php @@ -239,6 +239,17 @@ final class ManiphestTransactionSaveController extends ManiphestController { $draft->delete(); } + $event = new PhabricatorEvent( + PhabricatorEventType::TYPE_MANIPHEST_DIDEDITTASK, + array( + 'task' => $task, + 'new' => false, + 'transactions' => $transactions, + )); + $event->setUser($user); + $event->setAphrontRequest($request); + PhutilEventEngine::dispatchEvent($event); + return id(new AphrontRedirectResponse()) ->setURI('/T'.$task->getID()); }