diff options
author | myk%mozilla.org <> | 2001-08-31 12:54:25 +0200 |
---|---|---|
committer | myk%mozilla.org <> | 2001-08-31 12:54:25 +0200 |
commit | 880e86c82eb67a6940e2a38e74c7e66dafb44743 (patch) | |
tree | 564680d0c4d636b7ea1ce9129598d07747fb509d /buglist.cgi | |
parent | 0e9bbc0b0cf55e2da4d5e4ea30ba8a02324d6265 (diff) | |
download | bugzilla-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-x | buglist.cgi | 16 |
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))"; }, |