]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 217422: "0" was missing in "votes: 0" (MySQL 4 compatibility)
authorjustdave%syndicomm.com <>
Tue, 2 Sep 2003 13:54:58 +0000 (13:54 +0000)
committerjustdave%syndicomm.com <>
Tue, 2 Sep 2003 13:54:58 +0000 (13:54 +0000)
r= bbaetz, a= justdave

Bug.pm
Bugzilla/Bug.pm

diff --git a/Bug.pm b/Bug.pm
index 750fd818643af7d8c38c94e7fa941d3e62299821..94bd628e2498d4f8b124724e594fc6c43925742b 100755 (executable)
--- a/Bug.pm
+++ b/Bug.pm
@@ -140,7 +140,7 @@ sub initBug  {
       reporter, bug_file_loc, short_desc, target_milestone,
       qa_contact, status_whiteboard,
       DATE_FORMAT(creation_ts,'%Y.%m.%d %H:%i'),
-      delta_ts, sum(votes.vote_count),
+      delta_ts, ifnull(sum(votes.vote_count),0),
       reporter_accessible, cclist_accessible,
       estimated_time, remaining_time
     from bugs left join votes using(bug_id),
index 750fd818643af7d8c38c94e7fa941d3e62299821..94bd628e2498d4f8b124724e594fc6c43925742b 100755 (executable)
@@ -140,7 +140,7 @@ sub initBug  {
       reporter, bug_file_loc, short_desc, target_milestone,
       qa_contact, status_whiteboard,
       DATE_FORMAT(creation_ts,'%Y.%m.%d %H:%i'),
-      delta_ts, sum(votes.vote_count),
+      delta_ts, ifnull(sum(votes.vote_count),0),
       reporter_accessible, cclist_accessible,
       estimated_time, remaining_time
     from bugs left join votes using(bug_id),