@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Hide Edit Maniphest Tasks in commit with disabled Maniphest

Test Plan: Viewed commit with enabled/disabled Maniphest.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D3871

vrana f34246a7 89b37f03

+8 -6
+8 -6
src/applications/diffusion/controller/DiffusionCommitController.php
··· 820 820 require_celerity_resource('phabricator-object-selector-css'); 821 821 require_celerity_resource('javelin-behavior-phabricator-object-selector'); 822 822 823 - $action = new AphrontHeadsupActionView(); 824 - $action->setName('Edit Maniphest Tasks'); 825 - $action->setURI('/search/attach/'.$commit->getPHID().'/TASK/edge/'); 826 - $action->setWorkflow(true); 827 - $action->setClass('attach-maniphest'); 828 - $actions[] = $action; 823 + if (PhabricatorEnv::getEnvConfig('maniphest.enabled')) { 824 + $action = new AphrontHeadsupActionView(); 825 + $action->setName('Edit Maniphest Tasks'); 826 + $action->setURI('/search/attach/'.$commit->getPHID().'/TASK/edge/'); 827 + $action->setWorkflow(true); 828 + $action->setClass('attach-maniphest'); 829 + $actions[] = $action; 830 + } 829 831 830 832 if ($user->getIsAdmin()) { 831 833 $action = new AphrontHeadsupActionView();