mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-02 02:40:58 +01:00
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
This commit is contained in:
parent
84c3f5475b
commit
15c9287d43
1 changed files with 11 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue