]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 217422: "0" is missing in "votes: 0" (MySQL 4 Compatibility)
authorjustdave%syndicomm.com <>
Fri, 26 Sep 2003 05:29:46 +0000 (05:29 +0000)
committerjustdave%syndicomm.com <>
Fri, 26 Sep 2003 05:29:46 +0000 (05:29 +0000)
r= bbaetz, a= justdave

Bug.pm

diff --git a/Bug.pm b/Bug.pm
index 7ac2bd1012c7b6074567dbd13890c3602d2d7b89..05d25a97fbc31d56db4ce7368ec240bc806a66b0 100755 (executable)
--- 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";