mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
Merge pull request #46 from hunterbridges/aux-bug
Fixed auxiliary field submit bug on new task
This commit is contained in:
commit
977a6dcf86
1 changed files with 8 additions and 8 deletions
|
@ -164,14 +164,6 @@ class ManiphestTaskEditController extends ManiphestController {
|
||||||
$changes[ManiphestTransactionType::TYPE_PROJECTS] = $new_proj_arr;
|
$changes[ManiphestTransactionType::TYPE_PROJECTS] = $new_proj_arr;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Capture auxiliary field changes in a transaction
|
|
||||||
foreach ($aux_fields as $aux_field) {
|
|
||||||
$task->setAuxiliaryAttribute(
|
|
||||||
$aux_field->getAuxiliaryKey(),
|
|
||||||
$aux_field->getValueForStorage()
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($files) {
|
if ($files) {
|
||||||
$file_map = mpull($files, 'getPHID');
|
$file_map = mpull($files, 'getPHID');
|
||||||
$file_map = array_fill_keys($file_map, true);
|
$file_map = array_fill_keys($file_map, true);
|
||||||
|
@ -196,6 +188,14 @@ class ManiphestTaskEditController extends ManiphestController {
|
||||||
$editor->applyTransactions($task, $transactions);
|
$editor->applyTransactions($task, $transactions);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Capture auxiliary field changes in a transaction
|
||||||
|
foreach ($aux_fields as $aux_field) {
|
||||||
|
$task->setAuxiliaryAttribute(
|
||||||
|
$aux_field->getAuxiliaryKey(),
|
||||||
|
$aux_field->getValueForStorage()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
$redirect_uri = '/T'.$task->getID();
|
$redirect_uri = '/T'.$task->getID();
|
||||||
|
|
||||||
if ($workflow) {
|
if ($workflow) {
|
||||||
|
|
Loading…
Reference in a new issue