X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Flib%2FRT%2FSearch%2FFromSQL.pm;h=dbcad909911622b0244784046007c30996730a25;hp=364d7cf9e8444bbde0a5d475b96d4e7a16b7c8f1;hb=9aee669886202be7035e6c6049fc71bc99dd3013;hpb=0fb307c305e4bc2c9c27dc25a3308beae3a4d33c diff --git a/rt/lib/RT/Search/FromSQL.pm b/rt/lib/RT/Search/FromSQL.pm index 364d7cf9e..dbcad9099 100644 --- a/rt/lib/RT/Search/FromSQL.pm +++ b/rt/lib/RT/Search/FromSQL.pm @@ -2,7 +2,7 @@ # # COPYRIGHT: # -# This software is Copyright (c) 1996-2011 Best Practical Solutions, LLC +# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC # # # (Except where explicitly superseded by other copyright notices) @@ -66,6 +66,7 @@ Find all tickets described by the SQL statement passed as an argument package RT::Search::FromSQL; use strict; +use warnings; use base qw(RT::Search); =head2 Describe @@ -74,12 +75,10 @@ Returns a localized string describing the module's function. =cut -# {{{ sub Describe sub Describe { my $self = shift; return ($self->loc("TicketSQL search module", ref $self)); } -# }}} =head2 Prepare @@ -89,18 +88,13 @@ is reduced to those tickets matching the SQL query. =cut -# {{{ sub Prepare sub Prepare { my $self = shift; $self->TicketsObj->FromSQL($self->Argument); return(1); } -# }}} -eval "require RT::Search::FromSQL_Vendor"; -die $@ if ($@ && $@ !~ qr{^Can't locate RT/Search/FromSQL_Vendor.pm}); -eval "require RT::Search::FromSQL_Local"; -die $@ if ($@ && $@ !~ qr{^Can't locate RT/Search/FromSQL_Local.pm}); +RT::Base->_ImportOverlays(); 1;