mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-18 19:40:55 +01:00
Fix one straggler milestone URI
Summary: I missed this during cleanup. Test Plan: Go to a project, then: Subprojects, Create Milestone, Cancel. No longer 404/fatals. Reviewers: chad Reviewed By: chad Differential Revision: https://secure.phabricator.com/D15241
This commit is contained in:
parent
968ac76453
commit
705c8c956a
2 changed files with 4 additions and 10 deletions
|
@ -65,8 +65,6 @@ final class PhabricatorProjectApplication extends PhabricatorApplication {
|
|||
=> $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>[^/]+)/)?'
|
||||
|
|
|
@ -88,15 +88,11 @@ final class PhabricatorProjectEditEngine
|
|||
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue