From 5340e68cb9e09b9851fb9c2569cde2662fba3b76 Mon Sep 17 00:00:00 2001 From: "bugreport%peshkin.net" Date: Tue, 15 Nov 2005 20:47:01 +0000 Subject: [PATCH] Bug 306130 Search for attachment creation fails Patch by Joel Peshkin r,a=justfave --- webtools/bugzilla/Bugzilla/Search.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/webtools/bugzilla/Bugzilla/Search.pm b/webtools/bugzilla/Bugzilla/Search.pm index da6c90e9a2c6..5c08ea304739 100644 --- a/webtools/bugzilla/Bugzilla/Search.pm +++ b/webtools/bugzilla/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";