mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-11 07:11:04 +01:00
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:
parent
a695f264bf
commit
bab9a28ab9
1 changed files with 8 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue