Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15399727
D15640.id37688.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
D15640.id37688.diff
View Options
diff --git a/src/applications/maniphest/editor/ManiphestEditEngine.php b/src/applications/maniphest/editor/ManiphestEditEngine.php
--- a/src/applications/maniphest/editor/ManiphestEditEngine.php
+++ b/src/applications/maniphest/editor/ManiphestEditEngine.php
@@ -394,7 +394,6 @@
->setViewer($viewer)
->setBoardPHIDs($board_phids)
->setObjectPHIDs(array($task->getPHID()))
- ->setFetchAllBoards(true)
->executeLayout();
$map = array();
@@ -403,6 +402,14 @@
$in_columns = mpull($in_columns, null, 'getPHID');
$all_columns = $layout_engine->getColumns($board_phid);
+ if (!$all_columns) {
+ // This could be a project with no workboard, or a project the viewer
+ // does not have permission to see.
+ continue;
+ }
+
+ $board = head($all_columns)->getProject();
+
$options = array();
foreach ($all_columns as $column) {
$name = $column->getDisplayName();
@@ -439,7 +446,7 @@
}
$map[] = array(
- 'label' => head($all_columns)->getProject()->getDisplayName(),
+ 'label' => $board->getDisplayName(),
'options' => $options,
);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 18, 7:15 AM (5 d, 1 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7309504
Default Alt Text
D15640.id37688.diff (1 KB)
Attached To
Mode
D15640: Fix some issue with "Move on Workboard" and workboard-less or invisible projects
Attached
Detach File
Event Timeline
Log In to Comment