Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F5390490
D26078.1750029468.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
2 KB
Referenced Files
None
Subscribers
None
D26078.1750029468.diff
View Options
diff --git a/src/applications/project/controller/PhabricatorProjectColumnDetailController.php b/src/applications/project/controller/PhabricatorProjectColumnDetailController.php
--- a/src/applications/project/controller/PhabricatorProjectColumnDetailController.php
+++ b/src/applications/project/controller/PhabricatorProjectColumnDetailController.php
@@ -100,7 +100,16 @@
} else {
$limit_text = $limit;
}
- $properties->addProperty(pht('Point Limit'), $limit_text);
+
+ // The "limit" has always had a dual purpose.
+ // Let's make it more obvious.
+ if (ManiphestTaskPoints::getIsEnabled()) {
+ $limit_label = pht('Point Limit');
+ } else {
+ $limit_label = pht('Count Limit');
+ }
+
+ $properties->addProperty($limit_label, $limit_text);
$box = id(new PHUIObjectBoxView())
->setHeaderText(pht('Details'))
diff --git a/src/applications/project/controller/PhabricatorProjectColumnEditController.php b/src/applications/project/controller/PhabricatorProjectColumnEditController.php
--- a/src/applications/project/controller/PhabricatorProjectColumnEditController.php
+++ b/src/applications/project/controller/PhabricatorProjectColumnEditController.php
@@ -167,14 +167,24 @@
->setError($e_milestone_name));
}
+ // The "limit" has always had a dual purpose.
+ // Let's make it more obvious.
+ if (ManiphestTaskPoints::getIsEnabled()) {
+ $limit_label = pht('Point Limit');
+ $limit_caption =
+ pht('Maximum number of points of tasks allowed in the column.');
+ } else {
+ $limit_label = pht('Count Limit');
+ $limit_caption = pht('Maximum number of tasks allowed in the column.');
+ }
+
$form->appendChild(
id(new AphrontFormTextControl())
->setValue($v_limit)
- ->setLabel(pht('Point Limit'))
+ ->setLabel($limit_label)
->setName('limit')
->setError($e_limit)
- ->setCaption(
- pht('Maximum number of points of tasks allowed in the column.')));
+ ->setCaption($limit_caption));
if ($is_new) {
$title = pht('Create Column');
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jun 15, 23:17 (3 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1863399
Default Alt Text
D26078.1750029468.diff (2 KB)
Attached To
Mode
D26078: When Points are disabled, replace "Point Limit" with "Count Limit" label
Attached
Detach File
Event Timeline
Log In to Comment