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

Don't show "Primary Hashtag" when creating a project

Summary: Fixes T6598, "Primary Hashtag" field should only be visible in edit mode of existing projects.

Test Plan: Create project, "Primary Hashtag" field should be hidden. Edit an existing project, "Primary Hashtag" field should appear above "Additional Hashtags" as before.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Maniphest Tasks: T6598

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

authored by

lkassianik and committed by
epriestley
aeb4267b db51d7d9

+8 -3
+8 -3
src/applications/project/controller/PhabricatorProjectEditDetailsController.php
··· 220 220 ->setLabel(pht('Color')) 221 221 ->setName('color') 222 222 ->setValue($v_color) 223 - ->setOptions($shades)) 224 - ->appendChild( 223 + ->setOptions($shades)); 224 + 225 + if (!$is_new) { 226 + $form->appendChild( 225 227 id(new AphrontFormStaticControl()) 226 228 ->setLabel(pht('Primary Hashtag')) 227 229 ->setCaption(pht('The primary hashtag is derived from the name.')) 228 - ->setValue($v_primary_slug)) 230 + ->setValue($v_primary_slug)); 231 + } 232 + 233 + $form 229 234 ->appendChild( 230 235 id(new AphrontFormTextControl()) 231 236 ->setLabel(pht('Additional Hashtags'))