X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Flib%2FRT%2FScripActions.pm;h=be0b55cd1de0c6c2a77bb72ea5666f8ce77df036;hp=41ac60e926b3cec1003282ac186425a298c43b3e;hb=de9d037528895f7151a9aead6724ce2df95f9586;hpb=45d35d5739d05e602bc317739485693e0e9ff0b5 diff --git a/rt/lib/RT/ScripActions.pm b/rt/lib/RT/ScripActions.pm index 41ac60e92..be0b55cd1 100755 --- a/rt/lib/RT/ScripActions.pm +++ b/rt/lib/RT/ScripActions.pm @@ -2,7 +2,7 @@ # # COPYRIGHT: # -# This software is Copyright (c) 1996-2014 Best Practical Solutions, LLC +# This software is Copyright (c) 1996-2017 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;