1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 22:10:55 +01:00

Check for presence of any Columns before triggering initialization of Workboard

Summary: Ref T6256, this prevents more installs from getting in this weird state. We'll have to follow up if possible to "fix" the issue retroactively.

Test Plan: Test moving a backlog column to new position, hiding rest of other panels.

Reviewers: btrahan, epriestley

Reviewed By: epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T6256

Differential Revision: https://secure.phabricator.com/D10651
This commit is contained in:
Chad Little 2014-10-07 14:49:22 -07:00
parent 9c4b8a0fb2
commit 8aa047766d

View file

@ -68,7 +68,9 @@ final class PhabricatorProjectBoardViewController
$columns = $column_query->execute(); $columns = $column_query->execute();
$columns = mpull($columns, null, 'getSequence'); $columns = mpull($columns, null, 'getSequence');
if (empty($columns[0])) { // TODO: Expand the checks here if we add the ability
// to hide the Backlog column
if (!$columns) {
switch ($request->getStr('initialize-type')) { switch ($request->getStr('initialize-type')) {
case 'backlog-only': case 'backlog-only':
$unguarded = AphrontWriteGuard::beginScopedUnguardedWrites(); $unguarded = AphrontWriteGuard::beginScopedUnguardedWrites();