summaryrefslogtreecommitdiffstats
path: root/globals.pl
diff options
context:
space:
mode:
authortravis%sedsystems.ca <>2005-02-01 01:32:56 +0100
committertravis%sedsystems.ca <>2005-02-01 01:32:56 +0100
commit7c95655a860e263df00376c2c1b5658f53151654 (patch)
tree70fd45dea1dae1d4e4a58956d4a60d2e6620d7cb /globals.pl
parent6cf9cae950f0cc24fa517d5847d7fb3e8c9a8667 (diff)
downloadbugzilla-7c95655a860e263df00376c2c1b5658f53151654.tar.gz
bugzilla-7c95655a860e263df00376c2c1b5658f53151654.tar.xz
Bug 279700 : Move GetComments from globals.pl into Bugzilla::Bug
Patch by Max Kanat-Alexander <mkanat@kerio.com> r=vladd a=justdave
Diffstat (limited to 'globals.pl')
-rw-r--r--globals.pl29
1 files changed, 0 insertions, 29 deletions
diff --git a/globals.pl b/globals.pl
index 0c1ba852b..694d02f49 100644
--- a/globals.pl
+++ b/globals.pl
@@ -1147,35 +1147,6 @@ sub GetLongDescriptionAsText {
return ($result, $anyprivate);
}
-sub GetComments {
- my ($id) = (@_);
- my @comments;
- SendSQL("SELECT profiles.realname, profiles.login_name,
- date_format(longdescs.bug_when,'%Y.%m.%d %H:%i'),
- longdescs.thetext, longdescs.work_time,
- isprivate,
- date_format(longdescs.bug_when,'%Y%m%d%H%i%s')
- FROM longdescs, profiles
- WHERE profiles.userid = longdescs.who
- AND longdescs.bug_id = $id
- ORDER BY longdescs.bug_when");
-
- while (MoreSQLData()) {
- my %comment;
- ($comment{'name'}, $comment{'email'}, $comment{'time'},
- $comment{'body'}, $comment{'work_time'},
- $comment{'isprivate'}, $comment{'when'}) = FetchSQLData();
-
- $comment{'email'} .= Param('emailsuffix');
- $comment{'name'} = $comment{'name'} || $comment{'email'};
-
- push (@comments, \%comment);
- }
-
- return \@comments;
-}
-
-
# Fills in a hashtable with info about the columns for the given table in the
# database. The hashtable has the following entries:
# -list- the list of column names