Skip to content

Commit 48e121c

Browse files
Config Projects Extra Fields: link to the doc (like User)
Summary: Add a documentation link in a specific Config page, that is: Config > Setting > projects.custom-field-definitions Comparison example: | User | People | |-----------|------------| |{F1633919} | {F1633920} | This change is a boring follow-up of this one: https://we.phorge.it/D25507 Test Plan: Visit the page and click on the new link: - /config/edit/projects.custom-field-definitions/ Visit this page that was the inspirational page: - /config/edit/user.custom-field-definitions/ Check that no nuclear implosion is raised. Reviewers: O1 Blessed Committers, aklapper Reviewed By: O1 Blessed Committers, aklapper Subscribers: aklapper, tobiaswiese, Matthew, Cigaryno Differential Revision: https://we.phorge.it/D25552
1 parent 216d308 commit 48e121c

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/applications/project/config/PhabricatorProjectConfigOptions.php

+11-3
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,16 @@ public function getOptions() {
105105
),
106106
);
107107

108+
$fields_description = $this->deformat(pht(<<<EOTEXT
109+
List of custom fields for project tags.
110+
111+
For details on adding new fields, see [[ %s | %s ]] in the
112+
documentation.
113+
EOTEXT
114+
,
115+
PhabricatorEnv::getDoclink('Configuring Custom Fields'),
116+
pht('Configuring Custom Fields')));
117+
108118
$subtype_description = $this->deformat(pht(<<<EOTEXT
109119
Allows you to define project subtypes. For a more detailed description of
110120
subtype configuration, see @{config:maniphest.subtypes}.
@@ -114,9 +124,7 @@ public function getOptions() {
114124
return array(
115125
$this->newOption('projects.custom-field-definitions', 'wild', array())
116126
->setSummary(pht('Custom Projects fields.'))
117-
->setDescription(
118-
pht(
119-
'Array of custom fields for Projects.'))
127+
->setDescription($fields_description)
120128
->addExample(
121129
'{"mycompany:motto": {"name": "Project Motto", '.
122130
'"type": "text"}}',

0 commit comments

Comments
 (0)