From: Don Armstrong Date: Mon, 11 Feb 2008 04:16:33 +0000 (-0800) Subject: - Make search case insensitive (closes: #448861) X-Git-Tag: release/2.6.0~509^2 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=7d2c74dd23041feb5c28ee08cf4f43f508ffcc3d;p=debbugs.git - Make search case insensitive (closes: #448861) --- diff --git a/Debbugs/Bugs.pm b/Debbugs/Bugs.pm index e8d162ed..62cd03f8 100644 --- a/Debbugs/Bugs.pm +++ b/Debbugs/Bugs.pm @@ -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})})) { diff --git a/debian/changelog b/debian/changelog index 97f5489a..4bf13da6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Fri, 20 Jun 2003 18:57:25 +0100 diff --git a/scripts/process.in b/scripts/process.in index 7828244e..c2f4ddf9 100755 --- a/scripts/process.in +++ b/scripts/process.in @@ -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);