Bug 236533 : Text "Additional Comments From ..." can be improved

Patch by Todd Stansell <tjs@tellme.com>   r=kiko    a=myk


git-svn-id: svn://10.0.0.236/trunk@168117 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
travis%sedsystems.ca 2005-01-21 04:09:51 +00:00
parent 7256d7070a
commit f4641c231f

View File

@ -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")) {