Browse files

Fix #16989: The bug_get_bugnote_count() function in the bug API alway…

…s returns 0
  • Loading branch information...
1 parent f178991 commit 122edb61391f3effeb3235d9666fc24ff983feb1 @atrol atrol committed Feb 18, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/bug_api.php
View
2 core/bug_api.php
@@ -253,7 +253,7 @@ private function bug_get_bugnote_count() {
$query = "SELECT COUNT(*)
FROM $t_bugnote_table
WHERE bug_id =" . db_param() . " $t_restriction";
- $result = db_query_bound( $query, Array( $this->bug_id ) );
+ $result = db_query_bound( $query, Array( $this->id ) );
return db_result( $result );
}

0 comments on commit 122edb6

Please sign in to comment.