From 502ca4767e4b4ce5d06d83e2889c3696e2df22ef Mon Sep 17 00:00:00 2001 From: epriestley Date: Thu, 7 Nov 2019 16:24:49 -0800 Subject: [PATCH] When "Fetch Refs" are configured for a repository, highlight the "Branches" menu item in the Diffusion Management UI Summary: Ref T13448. Minor UI issue: setting a "Fetch Refs" value does not highlight the associated menu item, but should. Test Plan: Set only "Fetch Refs", now saw menu item highlighted. Maniphest Tasks: T13448 Differential Revision: https://secure.phabricator.com/D20895 --- .../management/DiffusionRepositoryBranchesManagementPanel.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/applications/diffusion/management/DiffusionRepositoryBranchesManagementPanel.php b/src/applications/diffusion/management/DiffusionRepositoryBranchesManagementPanel.php index 43b4d31252..e24bae7da4 100644 --- a/src/applications/diffusion/management/DiffusionRepositoryBranchesManagementPanel.php +++ b/src/applications/diffusion/management/DiffusionRepositoryBranchesManagementPanel.php @@ -23,6 +23,7 @@ final class DiffusionRepositoryBranchesManagementPanel $has_any = $repository->getDetail('default-branch') || + $repository->getFetchRules() || $repository->getTrackOnlyRules() || $repository->getPermanentRefRules();