[Rt-commit] r12563 - in rt/branches/3.6-RELEASE: .

falcone at bestpractical.com falcone at bestpractical.com
Tue May 20 14:51:49 EDT 2008


Author: falcone
Date: Tue May 20 14:51:48 2008
New Revision: 12563

Modified:
   rt/branches/3.6-RELEASE/   (props changed)
   rt/branches/3.6-RELEASE/lib/RT/Search/Googleish.pm

Log:
 r33329 at ketch:  falcone | 2008-05-20 14:51:13 -0400
 * move check for fulltext earlier, otherwise a search for
   fulltext:falcone at bestpractical.invalid becomes
   Requestor like 'falcone at bestpractical.invalid'
   rather than 
   Content like 'falcone at bestpractical.invalid'


Modified: rt/branches/3.6-RELEASE/lib/RT/Search/Googleish.pm
==============================================================================
--- rt/branches/3.6-RELEASE/lib/RT/Search/Googleish.pm	(original)
+++ rt/branches/3.6-RELEASE/lib/RT/Search/Googleish.pm	Tue May 20 14:51:48 2008
@@ -108,6 +108,13 @@
             push @id_clauses, "id = '$key'";
         }
 
+        elsif ($key =~ /^fulltext:(.*?)$/i) {
+            $key = $1;
+            $key =~ s/['\\].*//g;
+            push @tql_clauses, "Content LIKE '$key'";
+
+        }
+
         elsif ( $key =~ /\w+\@\w+/ ) {
             push @user_clauses, "Requestor LIKE '$key'";
         }
@@ -137,13 +144,6 @@
             push @owner_clauses, "Owner = '" . $User->Name . "'";
         }
 
-        elsif ($key =~ /^fulltext:(.*?)$/i) {
-            $key = $1;
-            $key =~ s/['\\].*//g;
-            push @tql_clauses, "Content LIKE '$key'";
-
-        }
-
         # Else, subject must contain $key
         else {
             $key =~ s/['\\].*//g;


More information about the Rt-commit mailing list