Differential D8849 Diff 21001 src/applications/conpherence/controller/ConpherenceUpdateController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conpherence/controller/ConpherenceUpdateController.php
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | if ($request->isFormPost()) { | ||||
$user, | $user, | ||||
$conpherence->getPHID()); | $conpherence->getPHID()); | ||||
$draft->setDraft($request->getStr('text')); | $draft->setDraft($request->getStr('text')); | ||||
$draft->replaceOrDelete(); | $draft->replaceOrDelete(); | ||||
return new AphrontAjaxResponse(); | return new AphrontAjaxResponse(); | ||||
case ConpherenceUpdateActions::MESSAGE: | case ConpherenceUpdateActions::MESSAGE: | ||||
$message = $request->getStr('text'); | $message = $request->getStr('text'); | ||||
$xactions = $editor->generateTransactionsFromText( | $xactions = $editor->generateTransactionsFromText( | ||||
$user, | |||||
$conpherence, | $conpherence, | ||||
$message); | $message); | ||||
$delete_draft = true; | $delete_draft = true; | ||||
break; | break; | ||||
case ConpherenceUpdateActions::ADD_PERSON: | case ConpherenceUpdateActions::ADD_PERSON: | ||||
$person_phids = $request->getArr('add_person'); | $person_phids = $request->getArr('add_person'); | ||||
if (!empty($person_phids)) { | if (!empty($person_phids)) { | ||||
$xactions[] = id(new ConpherenceTransaction()) | $xactions[] = id(new ConpherenceTransaction()) | ||||
▲ Show 20 Lines • Show All 281 Lines • Show Last 20 Lines |