... | ... |
@@ -35,7 +35,7 @@ |
35 | 35 |
my $close_count = $api->get_close_issue_count($user_id, $project_id); |
36 | 36 |
|
37 | 37 |
# Initialize labels if there are no labels |
38 |
- my $labels_count = app->dbi->model('label')->select('count(*)', where => {'project.id' => $project_id})->value; |
|
38 |
+ my $labels_count = app->dbi->model('label')->select('count(*)', where => {'user.id' => $user_id, 'project.id' => $project_id})->value; |
|
39 | 39 |
if ($labels_count == 0) { |
40 | 40 |
my @labels = ( |
41 | 41 |
{id => 'bug', color => '#fc2929'}, |