Fix excel export of builtin queries
Summary: This works fine for custom queries, but not for builtins. Test Plan: Exported a builtin query. Reviewers: btrahan Reviewed By: btrahan CC: hach-que, aran Differential Revision: https://secure.phabricator.com/D7015
This commit is contained in:
@@ -60,7 +60,14 @@ final class ManiphestExportController extends ManiphestController {
|
||||
->withQueryKeys(array($this->key))
|
||||
->executeOne();
|
||||
if (!$saved) {
|
||||
return new Aphront404Response();
|
||||
$engine = id(new ManiphestTaskSearchEngine())
|
||||
->setViewer($user);
|
||||
if ($engine->isBuiltinQuery($this->key)) {
|
||||
$saved = $engine->buildSavedQueryFromBuiltin($this->key);
|
||||
}
|
||||
if (!$saved) {
|
||||
return new Aphront404Response();
|
||||
}
|
||||
}
|
||||
|
||||
$formats = ManiphestExcelFormat::loadAllFormats();
|
||||
|
||||
Reference in New Issue
Block a user