[Rt-commit] rt branch 5.0/article-autocomplete-should-be-case-insensitive created. rt-5.0.3-125-g7dd3c31357

BPS Git Server git at git.bestpractical.com
Thu Nov 17 16:26:11 UTC 2022


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt".

The branch, 5.0/article-autocomplete-should-be-case-insensitive has been created
        at  7dd3c313579e452eb853db4d88cd0b8a4d149fa1 (commit)

- Log -----------------------------------------------------------------
commit 7dd3c313579e452eb853db4d88cd0b8a4d149fa1
Author: Brian Conry <bconry at bestpractical.com>
Date:   Thu Nov 17 10:23:16 2022 -0600

    Article autocomplete should be case insensitive
    
    CHange c8274d2937 added the ability to customize the fields searched for
    autocomplete results when finding articles to include.
    
    That change also inadvertantly made those searches case sensitive.
    
    This change fixes that.

diff --git a/lib/RT/Articles.pm b/lib/RT/Articles.pm
index 285cfe6de9..86f05f8f92 100644
--- a/lib/RT/Articles.pm
+++ b/lib/RT/Articles.pm
@@ -933,6 +933,7 @@ sub SimpleSearch {
                     VALUE           => $args{Term},
                     ENTRYAGGREGATOR => 'OR',
                     SUBCLAUSE       => 'autocomplete',
+                    CASESENSITIVE   => 0,
                 );
             } else {
                 RT->Logger->warning("Asked to search custom field $name but unable to load an Article CF with the name $cfname: $msg");
@@ -944,6 +945,7 @@ sub SimpleSearch {
                 VALUE           => $args{Term},
                 ENTRYAGGREGATOR => 'OR',
                 SUBCLAUSE       => 'autocomplete',
+                CASESENSITIVE   => 0,
             );
         }
     }

-----------------------------------------------------------------------


hooks/post-receive
-- 
rt


More information about the rt-commit mailing list