]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 490562: QuickSearch "+" operator adds $qsword over and over for @subWords
authormkanat%bugzilla.org <>
Wed, 29 Apr 2009 00:31:36 +0000 (00:31 +0000)
committermkanat%bugzilla.org <>
Wed, 29 Apr 2009 00:31:36 +0000 (00:31 +0000)
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit

Bugzilla/Search/Quicksearch.pm

index 04216b80cf27fbbdc5e24a39212095b9f5abfe01..54f6c93664e9e41376bce5c70473156d857350fe 100644 (file)
@@ -240,7 +240,7 @@ sub quicksearch {
             my @subWords = split(/[\|,]/, $baseWord);
             if ($firstChar eq '+') {
                 foreach (@subWords) {
-                    addChart('short_desc', 'substring', $qsword, $negate);
+                    addChart('short_desc', 'substring', $_, $negate);
                 }
             }
             elsif ($firstChar eq '#') {