From: justdave%syndicomm.com <> Date: Fri, 26 Sep 2003 05:29:46 +0000 (+0000) Subject: Bug 217422: "0" is missing in "votes: 0" (MySQL 4 Compatibility) X-Git-Tag: bugzilla-2.16.4~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8128672bc6e25224a2e7a21485042d9f1910b4a6;p=thirdparty%2Fbugzilla.git Bug 217422: "0" is missing in "votes: 0" (MySQL 4 Compatibility) r= bbaetz, a= justdave --- diff --git a/Bug.pm b/Bug.pm index 7ac2bd1012..05d25a97fb 100755 --- a/Bug.pm +++ b/Bug.pm @@ -112,7 +112,7 @@ sub initBug { resolution, priority, bug_severity, component, assigned_to, reporter, bug_file_loc, short_desc, target_milestone, qa_contact, status_whiteboard, date_format(creation_ts,'%Y-%m-%d %H:%i'), - groupset, delta_ts, sum(votes.count) + groupset, delta_ts, ifnull(sum(votes.vote_count),0), from bugs left join votes using(bug_id) where bugs.bug_id = $bug_id group by bugs.bug_id";