diff options
author | terry%mozilla.org <> | 1999-05-26 02:22:30 +0000 |
---|---|---|
committer | terry%mozilla.org <> | 1999-05-26 02:22:30 +0000 |
commit | 6c926fc14f987a047f1db3a793556f98f271b9f2 (patch) | |
tree | 18181945805bf9950e31800de3cfee19472d1fd1 /show_activity.cgi | |
parent | Fixed stupid typo. (diff) | |
download | bugzilla-6c926fc14f987a047f1db3a793556f98f271b9f2.tar.gz bugzilla-6c926fc14f987a047f1db3a793556f98f271b9f2.tar.bz2 bugzilla-6c926fc14f987a047f1db3a793556f98f271b9f2.zip |
Avoid mid-air collisions (implementing a suggestion by
py8ieh=bugzilla@bath.ac.uk).
Diffstat (limited to 'show_activity.cgi')
-rwxr-xr-x | show_activity.cgi | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/show_activity.cgi b/show_activity.cgi index 70f4c253f..fbcdcc687 100755 --- a/show_activity.cgi +++ b/show_activity.cgi @@ -29,35 +29,8 @@ print "Content-type: text/html\n\n"; PutHeader("Changes made to bug $::FORM{'id'}", "Activity log", "Bug $::FORM{'id'}"); -my $query = " - select bugs_activity.field, bugs_activity.when, - bugs_activity.oldvalue, bugs_activity.newvalue, - profiles.login_name - from bugs_activity,profiles - where bugs_activity.bug_id = $::FORM{'id'} - and profiles.userid = bugs_activity.who - order by bugs_activity.when"; - ConnectToDatabase(); -SendSQL($query); -print "<table border cellpadding=4>\n"; -print "<tr>\n"; -print " <th>Who</th><th>What</th><th>Old value</th><th>New value</th><th>When</th>\n"; -print "</tr>\n"; +DumpBugActivity($::FORM{'id'}); -my @row; -while (@row = FetchSQLData()) { - my ($field,$when,$old,$new,$who) = (@row); - $old = value_quote($old); - $new = value_quote($new); - print "<tr>\n"; - print "<td>$who</td>\n"; - print "<td>$field</td>\n"; - print "<td>$old</td>\n"; - print "<td>$new</td>\n"; - print "<td>$when</td>\n"; - print "</tr>\n"; -} -print "</table>\n"; print "<hr><a href=show_bug.cgi?id=$::FORM{'id'}>Back to bug $::FORM{'id'}</a>\n"; |