Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2929494
D25111.1737658842.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
1 KB
Referenced Files
None
Subscribers
None
D25111.1737658842.diff
View Options
diff --git a/src/applications/project/controller/PhabricatorProjectBoardReorderController.php b/src/applications/project/controller/PhabricatorProjectBoardReorderController.php
--- a/src/applications/project/controller/PhabricatorProjectBoardReorderController.php
+++ b/src/applications/project/controller/PhabricatorProjectBoardReorderController.php
@@ -98,14 +98,11 @@
->setDrag(true);
foreach ($columns as $column) {
- // Don't allow milestone columns to be reordered.
+ // do allow milestone columns to be reordered.
$proxy = $column->getProxy();
- if ($proxy && $proxy->isMilestone()) {
- continue;
- }
// At least for now, don't show subproject column.
- if ($proxy) {
+ if ($proxy && !$proxy->isMilestone()) {
continue;
}
@@ -115,6 +112,8 @@
if ($column->isHidden()) {
$item->setDisabled(true);
+ } elseif($proxy && $proxy->isMilestone()) {
+ $item->setTitleText(pht('Milestone'));
}
$item->setGrippable(true);
diff --git a/src/applications/project/storage/PhabricatorProjectColumn.php b/src/applications/project/storage/PhabricatorProjectColumn.php
--- a/src/applications/project/storage/PhabricatorProjectColumn.php
+++ b/src/applications/project/storage/PhabricatorProjectColumn.php
@@ -168,22 +168,7 @@
}
public function getOrderingKey() {
- $proxy = $this->getProxy();
-
- // Normal columns and subproject columns go first, in a user-controlled
- // order.
-
- // All the milestone columns go last, in their sequential order.
-
- if (!$proxy || !$proxy->isMilestone()) {
- $group = 'A';
- $sequence = $this->getSequence();
- } else {
- $group = 'B';
- $sequence = $proxy->getMilestoneNumber();
- }
-
- return sprintf('%s%012d', $group, $sequence);
+ return $this->getSequence();
}
public function attachTrigger(PhabricatorProjectTrigger $trigger = null) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 23, 19:00 (6 d, 19 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1108775
Default Alt Text
D25111.1737658842.diff (1 KB)
Attached To
Mode
D25111: Allow for reordering milestones
Attached
Detach File
Event Timeline
Log In to Comment