From a01a799c841531c0e7e9d11045204058418808a3 Mon Sep 17 00:00:00 2001 From: Anh Nhan Nguyen Date: Sun, 31 Mar 2013 12:39:54 -0700 Subject: [PATCH] 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 --- .../maniphest/controller/ManiphestTaskEditController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/applications/maniphest/controller/ManiphestTaskEditController.php b/src/applications/maniphest/controller/ManiphestTaskEditController.php index 367c4d1722..4f3fce1a77 100644 --- a/src/applications/maniphest/controller/ManiphestTaskEditController.php +++ b/src/applications/maniphest/controller/ManiphestTaskEditController.php @@ -63,6 +63,9 @@ final class ManiphestTaskEditController extends ManiphestController { $parent_id = $request->getInt('parent'); if ($parent_id) { $parent_task = id(new ManiphestTask())->load($parent_id); + if (!$template_id) { + $template_id = $parent_id; + } } }