diff options
author | myk%mozilla.org <> | 2001-08-31 10:54:25 +0000 |
---|---|---|
committer | myk%mozilla.org <> | 2001-08-31 10:54:25 +0000 |
commit | 880e86c82eb67a6940e2a38e74c7e66dafb44743 (patch) | |
tree | 564680d0c4d636b7ea1ce9129598d07747fb509d /CGI.pl | |
parent | 0e9bbc0b0cf55e2da4d5e4ea30ba8a02324d6265 (diff) | |
download | bugs-880e86c82eb67a6940e2a38e74c7e66dafb44743.tar bugs-880e86c82eb67a6940e2a38e74c7e66dafb44743.tar.gz bugs-880e86c82eb67a6940e2a38e74c7e66dafb44743.tar.bz2 bugs-880e86c82eb67a6940e2a38e74c7e66dafb44743.tar.xz bugs-880e86c82eb67a6940e2a38e74c7e66dafb44743.zip |
Fix for bug 84338: initial implementation of attachment tracker, which lets users flag attachments with statuses.
Patch by Myk Melez <myk@mozilla.org>
r=justdave@syndicomm.com
Diffstat (limited to 'CGI.pl')
-rw-r--r-- | CGI.pl | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1194,7 +1194,8 @@ sub DumpBugActivity { $datepart = "and bugs_activity.bug_when >= $starttime"; } my $query = " - SELECT IFNULL(fielddefs.name, bugs_activity.fieldid), + SELECT IFNULL(fielddefs.description, bugs_activity.fieldid), + bugs_activity.attach_id, bugs_activity.bug_when, bugs_activity.removed, bugs_activity.added, profiles.login_name @@ -1219,7 +1220,9 @@ sub DumpBugActivity { my @row; my $incomplete_data = 0; while (@row = FetchSQLData()) { - my ($field,$when,$removed,$added,$who) = (@row); + my ($field,$attachid,$when,$removed,$added,$who) = (@row); + $field =~ s/^Attachment/<a href="attachment.cgi?id=$attachid&action=view">Attachment #$attachid<\/a>/ + if (Param('useattachmenttracker') && $attachid); $removed = html_quote($removed); $added = html_quote($added); $removed = " " if $removed eq ""; @@ -1289,6 +1292,8 @@ Actions: } if (UserInGroup("editcomponents")) { $html .= ", <a href=editproducts.cgi>components</a>"; + $html .= ", <a href=editattachstatuses.cgi><NOBR>attachment statuses</NOBR></a>" + if Param('useattachmenttracker'); } if (UserInGroup("creategroups")) { $html .= ", <a href=editgroups.cgi>groups</a>"; |