Page MenuHomePhorge

D25506.1734665055.diff
No OneTemporary

D25506.1734665055.diff

diff --git a/src/applications/audit/query/PhabricatorCommitSearchEngine.php b/src/applications/audit/query/PhabricatorCommitSearchEngine.php
--- a/src/applications/audit/query/PhabricatorCommitSearchEngine.php
+++ b/src/applications/audit/query/PhabricatorCommitSearchEngine.php
@@ -70,6 +70,8 @@
}
protected function buildCustomSearchFields() {
+ $show_packages = PhabricatorApplication::isClassInstalled(
+ 'PhabricatorPackagesApplication');
return array(
id(new PhabricatorSearchDatasourceField())
->setLabel(pht('Responsible Users'))
@@ -118,6 +120,7 @@
->setConduitKey('packages')
->setAliases(array('package', 'packages', 'packagePHID'))
->setDatasource(new PhabricatorOwnersPackageDatasource())
+ ->setIsHidden(!$show_packages)
->setDescription(
pht('Find commits which affect given packages.')),
id(new PhabricatorSearchThreeStateField())

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 03:24 (21 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1016465
Default Alt Text
D25506.1734665055.diff (946 B)

Event Timeline