@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.

Fix issue with rendering policy controls when an install has zero projects

Fixes T10290.

Auditors: cahd

+7 -2
+7 -2
src/view/form/control/AphrontFormPolicyControl.php
··· 167 167 168 168 $type_project = PhabricatorPolicyType::TYPE_PROJECT; 169 169 170 + // Make sure we have a "Projects" group before we adjust it. 171 + if (empty($options[$type_project])) { 172 + $options[$type_project] = array(); 173 + } 174 + 175 + $options[$type_project] = isort($options[$type_project], 'sort'); 176 + 170 177 $placeholder = id(new PhabricatorPolicy()) 171 178 ->setName(pht('Other Project...')) 172 179 ->setIcon('fa-search'); 173 - 174 - $options[$type_project] = isort($options[$type_project], 'sort'); 175 180 176 181 $options[$type_project][$this->getSelectProjectKey()] = array( 177 182 'name' => $placeholder->getName(),