summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbugreport%peshkin.net <>2005-11-16 05:47:01 +0100
committerbugreport%peshkin.net <>2005-11-16 05:47:01 +0100
commit909b5624ec2b555f20b0f1a13b2a38f291a3e63b (patch)
treeaa3bf29c253a894a05ca5a239ee323af2c18c3fc
parentd9aee9d9366bdd037a09fd6a7c54b21d9749fd55 (diff)
downloadbugzilla-909b5624ec2b555f20b0f1a13b2a38f291a3e63b.tar.gz
bugzilla-909b5624ec2b555f20b0f1a13b2a38f291a3e63b.tar.xz
Bug 306130 Search for attachment creation fails
Patch by Joel Peshkin <bugreport@peshkin.net> r,a=justfave
-rw-r--r--Bugzilla/Search.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm
index da6c90e9a..5c08ea304 100644
--- a/Bugzilla/Search.pm
+++ b/Bugzilla/Search.pm
@@ -771,6 +771,11 @@ sub init {
"ON groups_$chartid.id = bug_group_map_$chartid.group_id");
$f = "groups_$chartid.name";
},
+ "^attach_data\.thedata,changed" => sub {
+ # Searches for attachment data's change must search
+ # the creation timestamp of the attachment instead.
+ $f = "attachments.whocares";
+ },
"^attach_data\.thedata," => sub {
my $atable = "attachments_$chartid";
my $dtable = "attachdata_$chartid";