| ... | ... |
@@ -678,6 +678,7 @@ Thanks for helping my GitPrep project. |
| 678 | 678 |
* [knittl](https://github.com/knittl) |
| 679 | 679 |
* [programmerMOT](https://github.com/programmerMOT) |
| 680 | 680 |
* [sn0](https://github.com/sn0) |
| 681 |
+* [socialmedialabs](https://github.com/socialmedialabs) |
|
| 681 | 682 |
|
| 682 | 683 |
## Copyright & license |
| 683 | 684 |
|
| ... | ... |
@@ -35,7 +35,10 @@ |
| 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 => {'user.id' => $user_id, 'project.id' => $project_id})->value;
|
|
| 38 |
+ my $labels_count = app->dbi->model('label')->select(
|
|
| 39 |
+ 'count(*)', |
|
| 40 |
+ where => {project => $project_row_id}
|
|
| 41 |
+ )->value; |
|
| 39 | 42 |
if ($labels_count == 0) {
|
| 40 | 43 |
my @labels = ( |
| 41 | 44 |
{id => 'bug', color => '#fc2929'},
|