X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Flib%2FRT%2FSavedSearches.pm;h=3e32ed12298b3991e1c4a7f6e1561cc666e76321;hb=b5c4237a34aef94976bc343c8d9e138664fc3984;hp=0b5ac9787030eed5224eeae942b50c983d31793e;hpb=c648976f0b7975f2328ebd7ba8c711fad0ca4195;p=freeside.git diff --git a/rt/lib/RT/SavedSearches.pm b/rt/lib/RT/SavedSearches.pm index 0b5ac9787..3e32ed122 100644 --- a/rt/lib/RT/SavedSearches.pm +++ b/rt/lib/RT/SavedSearches.pm @@ -1,40 +1,40 @@ # BEGIN BPS TAGGED BLOCK {{{ -# +# # COPYRIGHT: -# -# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC -# -# +# +# This software is Copyright (c) 1996-2011 Best Practical Solutions, LLC +# +# # (Except where explicitly superseded by other copyright notices) -# -# +# +# # LICENSE: -# +# # This work is made available to you under the terms of Version 2 of # the GNU General Public License. A copy of that license should have # been provided with this software, but in any event can be snarfed # from www.gnu.org. -# +# # This work is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. -# +# # You should have received a copy of the GNU General Public License # 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: -# +# # (The following paragraph is not intended to limit the rights granted # to you to modify and distribute this software under the terms of # the GNU General Public License and is only of importance to you if # you choose to contribute your changes and enhancements to the # community by submitting them to Best Practical Solutions, LLC.) -# +# # By intentionally submitting any modifications, corrections or # derivatives to this work, or any other work intended for use with # Request Tracker, to Best Practical Solutions, LLC, you confirm that @@ -43,8 +43,9 @@ # royalty-free, perpetual, license to use, copy, create derivative # works based on those contributions, and sublicense and distribute # those contributions and any derivatives thereof. -# +# # END BPS TAGGED BLOCK }}} + =head1 NAME RT::SavedSearches - a pseudo-collection for SavedSearch objects. @@ -61,24 +62,15 @@ =head1 METHODS -=begin testing - -use_ok(RT::SavedSearches); - -# The real tests are in lib/t/20savedsearch.t - -=end testing =cut package RT::SavedSearches; -use RT::Base; use RT::SavedSearch; use strict; -use vars qw/@ISA/; -@ISA = qw/RT::Base/; +use base 'RT::Base'; sub new { my $proto = shift; @@ -182,9 +174,6 @@ sub _PrivacyObjects { return ( $CurrentUser->UserObj, @{ $groups->ItemsArrayRef() } ); } -eval "require RT::SavedSearches_Vendor"; -die $@ if ($@ && $@ !~ qr{^Can't locate RT/SavedSearches_Vendor.pm}); -eval "require RT::SavedSearches_Local"; -die $@ if ($@ && $@ !~ qr{^Can't locate RT/SavedSearches_Local.pm}); +RT::Base->_ImportOverlays(); 1;