From: bugreport%peshkin.net <> Date: Wed, 16 Nov 2005 04:47:01 +0000 (+0000) Subject: Bug 306130 Search for attachment creation fails X-Git-Tag: bugzilla-2.22rc1~145 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=909b5624ec2b555f20b0f1a13b2a38f291a3e63b;p=thirdparty%2Fbugzilla.git Bug 306130 Search for attachment creation fails Patch by Joel Peshkin r,a=justfave --- diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index da6c90e9a2..5c08ea3047 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";