diff options
author | travis%sedsystems.ca <> | 2005-01-21 12:09:51 +0000 |
---|---|---|
committer | travis%sedsystems.ca <> | 2005-01-21 12:09:51 +0000 |
commit | 17c138615f168a56764669d0ba1bf85dd925c688 (patch) | |
tree | 36887ba8733c9c48a000090574d3958faef963d1 /globals.pl | |
parent | Bug 266579 : Users without privs can confirm bugs by assigning to themselves ... (diff) | |
download | bugzilla-17c138615f168a56764669d0ba1bf85dd925c688.tar.gz bugzilla-17c138615f168a56764669d0ba1bf85dd925c688.tar.bz2 bugzilla-17c138615f168a56764669d0ba1bf85dd925c688.zip |
Bug 236533 : Text "Additional Comments From ..." can be improved
Patch by Todd Stansell <tjs@tellme.com> r=kiko a=myk
Diffstat (limited to 'globals.pl')
-rw-r--r-- | globals.pl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/globals.pl b/globals.pl index 5c7da1a15..32dc64a6d 100644 --- a/globals.pl +++ b/globals.pl @@ -1134,7 +1134,8 @@ sub GetLongDescriptionAsText { # If the start is all zeros, then don't do this (because we want to # not emit a leading "Additional Comments" line in that case.) $query .= "AND longdescs.bug_when > '$start'"; - $count = 1; + SendSQL("SELECT count(*) FROM longdescs WHERE bug_id = $id AND bug_when <= '$start'"); + ($count) = (FetchSQLData()); } if ($end) { $query .= "AND longdescs.bug_when <= '$end'"; @@ -1145,7 +1146,7 @@ sub GetLongDescriptionAsText { while (MoreSQLData()) { my ($who, $when, $text, $isprivate, $work_time) = (FetchSQLData()); if ($count) { - $result .= "\n\n------- Additional Comments From $who".Param('emailsuffix')." ". + $result .= "\n\n------- Additional comment #$count from $who".Param('emailsuffix')." ". Bugzilla::Util::format_time($when) . " -------\n"; } if (($isprivate > 0) && Param("insidergroup")) { |