diff options
author | ivan <ivan> | 2009-12-18 00:41:34 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-12-18 00:41:34 +0000 |
commit | 40a7b3dc653e099f7bd0bd762b649b04c4432db2 (patch) | |
tree | f818105b1c8b13d709af4e251ee3213c5ba6773d /rt/lib/RT/Search/Googleish.pm | |
parent | 8d0665daac0c4deea67bf39bf4a13a9eaed51735 (diff) | |
parent | 2dfda73eeb3eae2d4f894099754794ef07d060dd (diff) |
This commit was generated by cvs2svn to compensate for changes in r8593,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'rt/lib/RT/Search/Googleish.pm')
-rw-r--r-- | rt/lib/RT/Search/Googleish.pm | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/rt/lib/RT/Search/Googleish.pm b/rt/lib/RT/Search/Googleish.pm index a2a887377..c784b1b9c 100644 --- a/rt/lib/RT/Search/Googleish.pm +++ b/rt/lib/RT/Search/Googleish.pm @@ -3,7 +3,7 @@ # # COPYRIGHT: # -# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +# This software is Copyright (c) 1996-2009 Best Practical Solutions, LLC # <jesse@bestpractical.com> # # (Except where explicitly superseded by other copyright notices) @@ -25,7 +25,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301 or visit their web page on the internet at -# http://www.gnu.org/copyleft/gpl.html. +# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. # # # CONTRIBUTION SUBMISSION POLICY: @@ -108,6 +108,13 @@ sub QueryToSQL { 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 @@ sub QueryToSQL { 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; |