Navigation Menu

Skip to content

Commit

Permalink
Fix #16989: The bug_get_bugnote_count() function in the bug API alway…
Browse files Browse the repository at this point in the history
…s returns 0
  • Loading branch information
atrol committed Feb 18, 2014
1 parent 053761e commit 84dd80e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/bug_api.php
Expand Up @@ -399,7 +399,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 );
}
Expand Down

0 comments on commit 84dd80e

Please sign in to comment.