Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F17703657
D10200.id24544.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D10200.id24544.diff
View Options
diff --git a/src/applications/project/controller/PhabricatorProjectBoardViewController.php b/src/applications/project/controller/PhabricatorProjectBoardViewController.php
--- a/src/applications/project/controller/PhabricatorProjectBoardViewController.php
+++ b/src/applications/project/controller/PhabricatorProjectBoardViewController.php
@@ -166,17 +166,17 @@
}
$task_map = array();
- $default_phid = $columns[0]->getPHID();
foreach ($tasks as $task) {
$task_phid = $task->getPHID();
-
- $column_phid = null;
- if (isset($positions[$task_phid])) {
- $column_phid = $positions[$task_phid]->getColumnPHID();
+ if (empty($positions[$task_phid])) {
+ // This shouldn't normally be possible because we create positions on
+ // demand, but we might have raced as an object was removed from the
+ // board. Just drop the task if we don't have a position for it.
+ continue;
}
- $column_phid = nonempty($column_phid, $default_phid);
- $task_map[$column_phid][] = $task_phid;
+ $position = $positions[$task_phid];
+ $task_map[$position->getColumnPHID()][] = $task_phid;
}
// If we're showing the board in "natural" order, sort columns by their
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 17, 2:10 AM (4 d, 12 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8485921
Default Alt Text
D10200.id24544.diff (1 KB)
Attached To
Mode
D10200: Clean up remaining default column logic for boards
Attached
Detach File
Event Timeline
Log In to Comment