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
|
@ -59,9 +59,16 @@ final class ManiphestExportController extends ManiphestController {
|
||||||
->setViewer($user)
|
->setViewer($user)
|
||||||
->withQueryKeys(array($this->key))
|
->withQueryKeys(array($this->key))
|
||||||
->executeOne();
|
->executeOne();
|
||||||
|
if (!$saved) {
|
||||||
|
$engine = id(new ManiphestTaskSearchEngine())
|
||||||
|
->setViewer($user);
|
||||||
|
if ($engine->isBuiltinQuery($this->key)) {
|
||||||
|
$saved = $engine->buildSavedQueryFromBuiltin($this->key);
|
||||||
|
}
|
||||||
if (!$saved) {
|
if (!$saved) {
|
||||||
return new Aphront404Response();
|
return new Aphront404Response();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$formats = ManiphestExcelFormat::loadAllFormats();
|
$formats = ManiphestExcelFormat::loadAllFormats();
|
||||||
$export_formats = array();
|
$export_formats = array();
|
||||||
|
|
Loading…
Reference in a new issue