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 @@ -403,6 +403,18 @@ $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(); + if (!$board->getHasWorkboard()) { + // If the board has been disabled, don't show options for it. + continue; + } + $options = array(); foreach ($all_columns as $column) { $name = $column->getDisplayName(); @@ -439,7 +451,7 @@ } $map[] = array( - 'label' => head($all_columns)->getProject()->getDisplayName(), + 'label' => $board->getDisplayName(), 'options' => $options, ); }