]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 306130 Search for attachment creation fails
authorbugreport%peshkin.net <>
Wed, 16 Nov 2005 04:47:01 +0000 (04:47 +0000)
committerbugreport%peshkin.net <>
Wed, 16 Nov 2005 04:47:01 +0000 (04:47 +0000)
Patch by Joel Peshkin <bugreport@peshkin.net>
r,a=justfave

Bugzilla/Search.pm

index da6c90e9a2c682a24203df81ae2d412e23f8e089..5c08ea3047393b2adb1090ba11dc4c286339e04e 100644 (file)
@@ -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";