mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-02 02:40:58 +01:00
Creating subtask in Maniphest also implies template from parent
Summary: Refs T2598 (or should it fix) If no template was specified, and we are creating a subtask of a task, we can safely assume that we can take the parent as a template. Copy Projects, CCs and the like (even the guy assigned to). Test Plan: Only in my imagination. Jk, I'm currently on Windows, and it always gives 404s (without chrome), so I can't test. I'll switch over to Ubuntu later today to test this. I'm confident that this works, though. Reviewers: epriestley CC: hfcorriez, aran, Korvin Maniphest Tasks: T2598 Differential Revision: https://secure.phabricator.com/D5499
This commit is contained in:
parent
16c562ba1c
commit
a01a799c84
1 changed files with 3 additions and 0 deletions
|
@ -63,6 +63,9 @@ final class ManiphestTaskEditController extends ManiphestController {
|
||||||
$parent_id = $request->getInt('parent');
|
$parent_id = $request->getInt('parent');
|
||||||
if ($parent_id) {
|
if ($parent_id) {
|
||||||
$parent_task = id(new ManiphestTask())->load($parent_id);
|
$parent_task = id(new ManiphestTask())->load($parent_id);
|
||||||
|
if (!$template_id) {
|
||||||
|
$template_id = $parent_id;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue