From 796428c810a0481660188ccf754da6ddc43e12ca Mon Sep 17 00:00:00 2001 From: Bob Trahan Date: Fri, 7 Nov 2014 16:45:59 -0800 Subject: [PATCH] Owners / Audit - restore link to view audits related to an owners package. Summary: Fixes T5387. I broke this in D8805. Fix it by using the application search parameters that D8805 introduced. Test Plan: verified that the two links mentioned in T5387 worked for me. Also tried manual links on secure.phabricator.com and those showed the right data even...! Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T5387 Differential Revision: https://secure.phabricator.com/D10817 --- .../owners/controller/PhabricatorOwnersDetailController.php | 4 ++-- .../owners/controller/PhabricatorOwnersListController.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/applications/owners/controller/PhabricatorOwnersDetailController.php b/src/applications/owners/controller/PhabricatorOwnersDetailController.php index 698df2b1be..5a56a73190 100644 --- a/src/applications/owners/controller/PhabricatorOwnersDetailController.php +++ b/src/applications/owners/controller/PhabricatorOwnersDetailController.php @@ -139,10 +139,10 @@ final class PhabricatorOwnersDetailController $commit_views = array(); - $commit_uri = id(new PhutilURI('/audit/view/packagecommits/')) + $commit_uri = id(new PhutilURI('/audit/')) ->setQueryParams( array( - 'phid' => $package->getPHID(), + 'auditorPHIDs' => $package->getPHID(), )); $attention_commits = id(new DiffusionCommitQuery()) diff --git a/src/applications/owners/controller/PhabricatorOwnersListController.php b/src/applications/owners/controller/PhabricatorOwnersListController.php index 70a8fcdbb5..b492f73eaf 100644 --- a/src/applications/owners/controller/PhabricatorOwnersListController.php +++ b/src/applications/owners/controller/PhabricatorOwnersListController.php @@ -308,7 +308,7 @@ final class PhabricatorOwnersListController phutil_tag( 'a', array( - 'href' => '/audit/view/packagecommits/?phid='.$package->getPHID(), + 'href' => '/audit/?auditorPHIDs='.$package->getPHID(), ), pht('Related Commits')), );