Page MenuHomePhabricator

D15241.id36786.diff
No OneTemporary

D15241.id36786.diff

diff --git a/src/applications/project/application/PhabricatorProjectApplication.php b/src/applications/project/application/PhabricatorProjectApplication.php
--- a/src/applications/project/application/PhabricatorProjectApplication.php
+++ b/src/applications/project/application/PhabricatorProjectApplication.php
@@ -65,8 +65,6 @@
=> $this->getPanelRouting('PhabricatorProjectPanelController'),
'subprojects/(?P<id>[1-9]\d*)/'
=> 'PhabricatorProjectSubprojectsController',
- 'milestones/(?P<id>[1-9]\d*)/'
- => 'PhabricatorProjectMilestonesController',
'board/(?P<id>[1-9]\d*)/'.
'(?P<filter>filter/)?'.
'(?:query/(?P<queryKey>[^/]+)/)?'
diff --git a/src/applications/project/engine/PhabricatorProjectEditEngine.php b/src/applications/project/engine/PhabricatorProjectEditEngine.php
--- a/src/applications/project/engine/PhabricatorProjectEditEngine.php
+++ b/src/applications/project/engine/PhabricatorProjectEditEngine.php
@@ -88,15 +88,11 @@
protected function getObjectCreateCancelURI($object) {
$parent = $this->getParentProject();
- if ($parent) {
- $id = $parent->getID();
- return "/project/subprojects/{$id}/";
- }
-
$milestone = $this->getMilestoneProject();
- if ($milestone) {
- $id = $milestone->getID();
- return "/project/milestones/{$id}/";
+
+ if ($parent || $milestone) {
+ $id = nonempty($parent, $milestone)->getID();
+ return "/project/subprojects/{$id}/";
}
return parent::getObjectCreateCancelURI($object);

File Metadata

Mime Type
text/plain
Expires
Tue, Jan 14, 5:09 PM (55 m, 52 s)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6992511
Default Alt Text
D15241.id36786.diff (1 KB)

Event Timeline