[Rt-commit] rt branch, 4.2/autocomplete-links, updated. rt-4.0.0rc6-175-gc50c221

Shawn Moore sartak at bestpractical.com
Fri Mar 11 12:37:56 EST 2011


The branch, 4.2/autocomplete-links has been updated
       via  c50c221c251a9d0fcdd6bd8e6b63622bd69f0856 (commit)
      from  da32fad1f8458d36c2a73c9afe7b06ae85eb09de (commit)

Summary of changes:
 etc/RT_Config.pm.in                     |    5 ++---
 share/html/Helpers/Autocomplete/Tickets |    2 +-
 2 files changed, 3 insertions(+), 4 deletions(-)

- Log -----------------------------------------------------------------
commit c50c221c251a9d0fcdd6bd8e6b63622bd69f0856
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Fri Mar 11 12:37:23 2011 -0500

    Include Subject as a field to autocomplete tickets on
    
        Though right now ENTRYAGGREGATOR => 'OR' is not working, the query
        is getting AND..

diff --git a/etc/RT_Config.pm.in b/etc/RT_Config.pm.in
index f88fd6a..6b68894 100755
--- a/etc/RT_Config.pm.in
+++ b/etc/RT_Config.pm.in
@@ -1729,12 +1729,11 @@ Not all Ticket fields are publically accessible and hence won't work for
 autocomplete unless you override their accessibility using a local overlay or a
 plugin.  Out of the box the following fields are public: id, Subject.
 
-Default: C<< Set( $TicketAutocompleteFields, { id => 'STARTSWITH' })] ) >>
-
 =cut
 
 Set( $TicketAutocompleteFields, {
-    id => 'STARTSWITH',
+    id      => 'STARTSWITH',
+    Subject => 'LIKE',
 });
 
 =item C<$DisplayTicketAfterQuickCreate>
diff --git a/share/html/Helpers/Autocomplete/Tickets b/share/html/Helpers/Autocomplete/Tickets
index 332719f..f9cc0e1 100644
--- a/share/html/Helpers/Autocomplete/Tickets
+++ b/share/html/Helpers/Autocomplete/Tickets
@@ -84,7 +84,7 @@ my $CurrentUser = $session{'CurrentUser'};
 $m->abort unless $CurrentUser->Privileged;
 
 my %fields = %{ RT->Config->Get('TicketAutocompleteFields')
-                || { id => 'STARTSWITH' } };
+                || { id => 'STARTSWITH', Subject => 'LIKE' } };
 
 my $tickets = RT::Tickets->new( $CurrentUser );
 $tickets->RowsPerPage( $max );

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


More information about the Rt-commit mailing list