]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 179238 - searching by commenter is ignored if you do 'exact' or
authorbbaetz%student.usyd.edu.au <>
Sun, 10 Nov 2002 11:05:23 +0000 (11:05 +0000)
committerbbaetz%student.usyd.edu.au <>
Sun, 10 Nov 2002 11:05:23 +0000 (11:05 +0000)
'contains'
r, a=myk

Bugzilla/Search.pm

index 6e37569d96435b6b03a421ba7d22b53e5cb429ba..d7e3818d04c10ce6c1e272c1bfb846f187866d75 100644 (file)
@@ -190,7 +190,10 @@ sub init {
             if (my $list = $self->ListIDsForEmail($type, $email)) {
                 my $table = "longdescs_email_$id";
                 push(@supptables, "LEFT JOIN longdescs $table ON bugs.bug_id = $table.bug_id AND $table.who IN($list)");
-                push(@clist, "$table.who",'isnotnull');
+                push(@wherepart, "$table.who IS NOT NULL");
+                # push something into @clist so that we don't trigger
+                # the missing_email_type error below
+                push(@clist, 'noop');
             } else {
                 my $table = "longdescs_email_$id";
                 push(@supptables, "longdescs $table");
@@ -600,9 +603,6 @@ sub init {
          ",lessthan" => sub {
              $term = "$ff < $q";
          },
-         ",isnotnull" => sub {
-             $term = "$ff IS NOT NULL";
-         },
          ",greaterthan" => sub {
              $term = "$ff > $q";
          },