X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Flib%2FRT%2FCustomFieldValues_Overlay.pm;h=4c6d7f84d63b678c83314d0caf6f053209603757;hb=053afcc049b1ef0adbf71f90980d762738507b7f;hp=074498073f44203ba1cf86c8f003568076d8562a;hpb=d39d52aac8f38ea9115628039f0df5aa3ac826de;p=freeside.git diff --git a/rt/lib/RT/CustomFieldValues_Overlay.pm b/rt/lib/RT/CustomFieldValues_Overlay.pm index 074498073..4c6d7f84d 100644 --- a/rt/lib/RT/CustomFieldValues_Overlay.pm +++ b/rt/lib/RT/CustomFieldValues_Overlay.pm @@ -1,8 +1,8 @@ -# {{{ BEGIN BPS TAGGED BLOCK +# BEGIN BPS TAGGED BLOCK {{{ # # COPYRIGHT: -# -# This software is Copyright (c) 1996-2004 Best Practical Solutions, LLC +# +# This software is Copyright (c) 1996-2009 Best Practical Solutions, LLC # # # (Except where explicitly superseded by other copyright notices) @@ -22,7 +22,9 @@ # # 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., 675 Mass Ave, Cambridge, MA 02139, USA. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +# 02110-1301 or visit their web page on the internet at +# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. # # # CONTRIBUTION SUBMISSION POLICY: @@ -42,8 +44,12 @@ # works based on those contributions, and sublicense and distribute # those contributions and any derivatives thereof. # -# }}} END BPS TAGGED BLOCK +# END BPS TAGGED BLOCK }}} + +package RT::CustomFieldValues; + use strict; +use warnings; no warnings qw(redefine); # {{{ sub LimitToCustomField @@ -57,13 +63,13 @@ Limits the returned set to values for the custom field with Id FIELD sub LimitToCustomField { my $self = shift; my $cf = shift; - return ($self->Limit( FIELD => 'CustomField', - VALUE => $cf, - OPERATOR => '=')); - + return $self->Limit( + FIELD => 'CustomField', + VALUE => $cf, + OPERATOR => '=', + ); } # }}} 1; -