Skip to content

Commit ea78f92

Browse files
committed
Conpherence - workflow the Message link on people profiles
Summary: Fixes T2416. I was tired of looking at this task in the list, interns be damned. :D Test Plan: it is now a workflow when you click it Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T2416 Differential Revision: https://secure.phabricator.com/D5811
1 parent 2ed2998 commit ea78f92

File tree

2 files changed

+4
-18
lines changed

2 files changed

+4
-18
lines changed

src/applications/conpherence/controller/ConpherenceNewController.php

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -86,24 +86,9 @@ public function processRequest() {
8686

8787
$conpherence->saveTransaction();
8888

89-
if ($request->isAjax()) {
90-
$dialog = id(new AphrontDialogView())
91-
->setUser($user)
92-
->setTitle('Success')
93-
->addCancelButton('#', 'Okay')
94-
->appendChild(
95-
phutil_tag(
96-
'p',
97-
array(),
98-
pht('Message sent successfully.')));
99-
$response = id(new AphrontDialogResponse())
100-
->setDialog($dialog);
101-
} else {
102-
$uri = $this->getApplicationURI($conpherence->getID());
103-
$response = id(new AphrontRedirectResponse())
104-
->setURI($uri);
105-
}
106-
return $response;
89+
$uri = $this->getApplicationURI($conpherence->getID());
90+
return id(new AphrontRedirectResponse())
91+
->setURI($uri);
10792
}
10893
}
10994

src/applications/conpherence/events/ConpherencePeopleMenuEventListener.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ private function handleMenuEvent($event) {
2828
->setIsExternal(true)
2929
->setName($name)
3030
->setHref($conpherence_uri)
31+
->setWorkflow(true)
3132
->setKey($name));
3233

3334
$event->setValue('menu', $menu);

0 commit comments

Comments
 (0)