From 1a5d92184cb6fd8d9f04b2e6ae3fe906ec24d67b Mon Sep 17 00:00:00 2001 From: Chad Little Date: Mon, 20 Mar 2017 17:42:33 -0700 Subject: [PATCH] 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 --- .../PhabricatorDashboardQueryPanelInstallController.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/applications/dashboard/controller/PhabricatorDashboardQueryPanelInstallController.php b/src/applications/dashboard/controller/PhabricatorDashboardQueryPanelInstallController.php index ecc635966e..eeeaaf133b 100644 --- a/src/applications/dashboard/controller/PhabricatorDashboardQueryPanelInstallController.php +++ b/src/applications/dashboard/controller/PhabricatorDashboardQueryPanelInstallController.php @@ -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()) {