Differential D7370 Diff 16624 src/applications/project/controller/PhabricatorProjectMembersEditController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/controller/PhabricatorProjectMembersEditController.php
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | if ($request->isFormPost()) { | ||||
} | } | ||||
} | } | ||||
} | } | ||||
$xactions = array(); | $xactions = array(); | ||||
if ($changed_something) { | if ($changed_something) { | ||||
$xaction = new PhabricatorProjectTransaction(); | $xaction = new PhabricatorProjectTransaction(); | ||||
$xaction->setTransactionType( | $xaction->setTransactionType( | ||||
PhabricatorProjectTransactionType::TYPE_MEMBERS); | PhabricatorProjectTransaction::TYPE_MEMBERS); | ||||
$xaction->setNewValue(array_keys($member_map)); | $xaction->setNewValue(array_keys($member_map)); | ||||
$xactions[] = $xaction; | $xactions[] = $xaction; | ||||
} | } | ||||
if ($xactions) { | if ($xactions) { | ||||
$editor = new PhabricatorProjectEditor($project); | $editor = new PhabricatorProjectEditor($project); | ||||
$editor->setActor($user); | $editor->setActor($user); | ||||
$editor->applyTransactions($xactions); | $editor->applyTransactions($xactions); | ||||
▲ Show 20 Lines • Show All 107 Lines • Show Last 20 Lines |