Showing 1 changed files with 1 additions and 1 deletions
+1 -1
templates/issues.html.ep
... ...
@@ -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(*)')->value;
38
+  my $labels_count = app->dbi->model('label')->select('count(*)', where => {'project.id' => $project_id})->value;
39 39
   if ($labels_count == 0) {
40 40
     my @labels = (
41 41
       {id => 'bug', color => '#fc2929'},