Differential D10025 Diff 24113 src/applications/maniphest/controller/ManiphestTaskEditController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/controller/ManiphestTaskEditController.php
Show First 20 Lines • Show All 139 Lines • ▼ Show 20 Lines | public function processRequest() { | ||||
$field_list = PhabricatorCustomField::getObjectFields( | $field_list = PhabricatorCustomField::getObjectFields( | ||||
$task, | $task, | ||||
PhabricatorCustomField::ROLE_EDIT); | PhabricatorCustomField::ROLE_EDIT); | ||||
$field_list->setViewer($user); | $field_list->setViewer($user); | ||||
$field_list->readFieldsFromStorage($task); | $field_list->readFieldsFromStorage($task); | ||||
$aux_fields = $field_list->getFields(); | $aux_fields = $field_list->getFields(); | ||||
// Read custom fields request if they are provided | |||||
if (!$request->isFormPost()) { | |||||
foreach ($aux_fields as $name => $field) { | |||||
if ($request->getStr($name)) { | |||||
$field->readValueFromRequest($request); | |||||
} | |||||
} | |||||
} | |||||
if ($request->isFormPost()) { | if ($request->isFormPost()) { | ||||
$changes = array(); | $changes = array(); | ||||
$new_title = $request->getStr('title'); | $new_title = $request->getStr('title'); | ||||
$new_desc = $request->getStr('description'); | $new_desc = $request->getStr('description'); | ||||
$new_status = $request->getStr('status'); | $new_status = $request->getStr('status'); | ||||
if (!$task->getID()) { | if (!$task->getID()) { | ||||
▲ Show 20 Lines • Show All 598 Lines • Show Last 20 Lines |