]> git.donarmstrong.com Git - debbugs.git/commitdiff
- Make search case insensitive (closes: #448861)
authorDon Armstrong <don@donarmstrong.com>
Mon, 11 Feb 2008 04:16:33 +0000 (20:16 -0800)
committerDon Armstrong <don@donarmstrong.com>
Mon, 11 Feb 2008 04:16:33 +0000 (20:16 -0800)
Debbugs/Bugs.pm
debian/changelog
scripts/process.in

index e8d162edf279bd0d8c381e3696c6e6d57fb6775a..62cd03f8c03e483acc01ef4f786aca4bfec0e81b 100644 (file)
@@ -433,13 +433,20 @@ sub get_bugs_by_idx{
               or die "Unable to open $index: $!";
          my %bug_matching = ();
          for my $search (make_list($param{$key})) {
-              next unless defined $idx{$search};
-              for my $bug (keys %{$idx{$search}}) {
+              for my $bug (keys %{$idx{$search}||{}}) {
                    next if $bug_matching{$bug};
                    # increment the number of searches that this bug matched
                    $bugs{$bug}++;
                    $bug_matching{$bug}=1;
               }
+              if ($search ne lc($search)) {
+                   for my $bug (keys %{$idx{lc($search)}||{}}) {
+                        next if $bug_matching{$bug};
+                        # increment the number of searches that this bug matched
+                        $bugs{$bug}++;
+                        $bug_matching{$bug}=1;
+                   }
+              }
          }
          if ($key eq 'tag' and exists $param{usertags}) {
               for my $bug (make_list(grep {defined $_ } @{$param{usertags}}{make_list($param{tag})})) {
index 97f5489a97b04bbe7a8eadde1ddeda496287ea9c..4bf13da600bc18f89f9954a99b0b74f981ee004b 100644 (file)
@@ -209,6 +209,7 @@ debbugs (2.4.2) UNRELEASED; urgency=low
     - Fix casing of versions (closes: #441022)
     - Output last-modified in bugreport.cgi (closes: #459709)
     - Fix various html syntax errors in pkgreport.cgi (closes: #462322)
+    - Make search case insensitive (closes: #448861)
 
   
  -- Colin Watson <cjwatson@debian.org>  Fri, 20 Jun 2003 18:57:25 +0100
index 7828244e6c272dd15852aa19a24268ca73cb8461..c2f4ddf9372b5dd5a8c86f8bb846b7c0117d26c6 100755 (executable)
@@ -440,6 +440,8 @@ if ($codeletter eq 'D' || $codeletter eq 'F')
              ],message_body_template('mail/process_mark_as_done',
                                     {data      => $data,
                                      markedby  => $markedby,
+                                     messageid => $header{'message-id'},
+                                     subject   => $header{subject},
                                     },
                                    ),
             [join("\n",@msg),$orig_report]),'',undef,1);