mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 00:32:42 +01:00
Try to guess a name for the 'Add to Dashboard' workflow
Summary: Ref T5307. Just makes the dialog a little easier to use. Picks a name if we already have one. Test Plan: Test a builtin, custom saved, and a new advanced search (no name). Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Maniphest Tasks: T5307 Differential Revision: https://secure.phabricator.com/D17523
This commit is contained in:
parent
0ceab7d36f
commit
1a5d92184c
1 changed files with 5 additions and 0 deletions
|
@ -45,6 +45,11 @@ final class PhabricatorDashboardQueryPanelInstallController
|
|||
return new Aphront404Response();
|
||||
}
|
||||
|
||||
$named_query = idx($engine->loadEnabledNamedQueries(), $v_query);
|
||||
if ($named_query) {
|
||||
$v_name = $named_query->getQueryName();
|
||||
}
|
||||
|
||||
$errors = array();
|
||||
|
||||
if ($request->isFormPost()) {
|
||||
|
|
Loading…
Reference in a new issue