'Create Document' pre-fills with current slug

Summary:
Fixes T2667

The 'Create Document' link up in the application crumbs now prefills with the slug of the current document - if available, that is

Test Plan: verified that nothing crashed, that the correct slug was pre-filled, and that pages could be created

Reviewers: alexshtuk, epriestley

CC: aran, Korvin

Maniphest Tasks: T2667

Differential Revision: https://secure.phabricator.com/D5273
This commit is contained in:
Anh Nhan Nguyen
2013-03-07 08:12:00 -08:00
committed by epriestley
parent 90d0e8a322
commit b42b1f6817
3 changed files with 17 additions and 3 deletions

View File

@@ -403,4 +403,8 @@ final class PhrictionDocumentController
return $item;
}
protected function getDocumentSlug() {
return $this->slug;
}
}