summaryrefslogtreecommitdiffstats
path: root/buglist.cgi
diff options
context:
space:
mode:
authormyk%mozilla.org <>2001-08-31 12:54:25 +0200
committermyk%mozilla.org <>2001-08-31 12:54:25 +0200
commit880e86c82eb67a6940e2a38e74c7e66dafb44743 (patch)
tree564680d0c4d636b7ea1ce9129598d07747fb509d /buglist.cgi
parent0e9bbc0b0cf55e2da4d5e4ea30ba8a02324d6265 (diff)
downloadbugzilla-880e86c82eb67a6940e2a38e74c7e66dafb44743.tar.gz
bugzilla-880e86c82eb67a6940e2a38e74c7e66dafb44743.tar.xz
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 'buglist.cgi')
-rwxr-xr-xbuglist.cgi16
1 files changed, 16 insertions, 0 deletions
diff --git a/buglist.cgi b/buglist.cgi
index 2b2a394bf..830b66599 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -415,6 +415,22 @@ sub GenerateSQL {
}
$f = "$table.$field";
},
+ # 2001-05-16 myk@mozilla.org: enable querying against attachment status
+ # if this installation has enabled use of the attachment manager.
+ "^attachstatusdefs.name," => sub {
+ my $attachtable = "attachments_$chartid";
+ my $statustable = "attachstatuses_$chartid";
+ my $statusdefstable = "attachstatusdefs_$chartid";
+ push(@supptables, "attachments $attachtable");
+ push(@supptables, "attachstatuses $statustable");
+ push(@supptables, "attachstatusdefs $statusdefstable");
+ push(@wherepart, "bugs.bug_id = $attachtable.bug_id");
+ push(@wherepart, "$attachtable.attach_id = $statustable.attach_id");
+ push(@wherepart, "$statustable.statusid = $statusdefstable.id");
+ my $table = $statusdefstable;
+ my $field = "name";
+ $f = "$table.$field";
+ },
"^changedin," => sub {
$f = "(to_days(now()) - to_days(bugs.delta_ts))";
},