From 7d2c74dd23041feb5c28ee08cf4f43f508ffcc3d Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Sun, 10 Feb 2008 20:16:33 -0800 Subject: [PATCH] - Make search case insensitive (closes: #448861) --- Debbugs/Bugs.pm | 11 +++++++++-- debian/changelog | 1 + scripts/process.in | 2 ++ 3 files changed, 12 insertions(+), 2 deletions(-) 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); -- 2.39.5