1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-29 18:22:41 +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:
Chad Little 2017-03-20 17:42:33 -07:00
parent 0ceab7d36f
commit 1a5d92184c

View file

@ -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()) {