Skip to content

Commit 4d02dad

Browse files
committed
compatible with old data
1 parent 16ffc65 commit 4d02dad

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

app/Http/Controllers/BoardController.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,14 @@ public function index($project_key) {
7171
->whereIn('status', [ 'active', 'waiting' ])
7272
->orderBy('no', 'asc')
7373
->get();
74+
// compatible with old data
75+
foreach ($sprints as $sprint)
76+
{
77+
if (!$sprint->name)
78+
{
79+
$sprint->name = 'Sprint ' . $sprint->no;
80+
}
81+
}
7482

7583
$epics = Epic::where('project_key', $project_key)
7684
->orderBy('sn', 'asc')

0 commit comments

Comments
 (0)