Skip to content

Commit 2aad4c9

Browse files
committed
Fix for sprint planning index error
Signed-off-by: Jonathan O'Brien <jobrien@mstech.com>
1 parent 72c08fb commit 2aad4c9

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

app/Http/Controllers/Web/IssueController.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,16 @@ public function index($slug)
3535
->with('issues.sprint')
3636
->with('issues.configEffort')
3737
->first();
38-
39-
$issues = $sprint->issues;
38+
39+
//when viewing from sprint planning, issues need to be passed in an array indexed by their status, so they can be put in the appropriate kanban columns
40+
$is = $sprint->issues;
41+
$issues = array();
42+
foreach($is as $i) {
43+
$issues[$i->config_status_id] = array();
44+
}
45+
foreach($is as $i) {
46+
$issues[$i->config_status_id][] = $i;
47+
}
4048
} else {
4149
$sprint = null;
4250
$issues = Auth::user()->issues()

0 commit comments

Comments
 (0)