X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Flib%2FRT%2FScripActions.pm;h=2a915f48ce2c5c910c1f46a837e17a76eceb599d;hb=44dd00a3ff974a17999e86e64488e996edc71e3c;hp=a3a162253fd873f9155ebdb54e9749a953d8a6b8;hpb=7588a4ac90a9b07c08a3107cd1107d773be1c991;p=freeside.git diff --git a/rt/lib/RT/ScripActions.pm b/rt/lib/RT/ScripActions.pm index a3a162253..2a915f48c 100755 --- a/rt/lib/RT/ScripActions.pm +++ b/rt/lib/RT/ScripActions.pm @@ -2,7 +2,7 @@ # # COPYRIGHT: # -# This software is Copyright (c) 1996-2013 Best Practical Solutions, LLC +# This software is Copyright (c) 1996-2019 Best Practical Solutions, LLC # # # (Except where explicitly superseded by other copyright notices) @@ -84,29 +84,19 @@ sub LimitToType { my $self = shift; my $type = shift; $self->Limit (ENTRYAGGREGATOR => 'OR', - FIELD => 'Type', - VALUE => "$type") + FIELD => 'Type', + VALUE => "$type") if defined $type; $self->Limit (ENTRYAGGREGATOR => 'OR', - FIELD => 'Type', - VALUE => "Correspond") + FIELD => 'Type', + VALUE => "Correspond") if $type eq "Create"; $self->Limit (ENTRYAGGREGATOR => 'OR', - FIELD => 'Type', - VALUE => 'any'); - -} - -=head2 NewItem - -Returns an empty new RT::ScripAction item + FIELD => 'Type', + VALUE => 'any'); -=cut - -sub NewItem { - my $self = shift; - return(RT::ScripAction->new($self->CurrentUser)); } + RT::Base->_ImportOverlays(); 1;