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:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user