summaryrefslogtreecommitdiff
path: root/rt/lib/RT/ScripActions.pm
diff options
context:
space:
mode:
Diffstat (limited to 'rt/lib/RT/ScripActions.pm')
-rwxr-xr-xrt/lib/RT/ScripActions.pm24
1 files changed, 7 insertions, 17 deletions
diff --git a/rt/lib/RT/ScripActions.pm b/rt/lib/RT/ScripActions.pm
index 2de5689a4..f663480ce 100755
--- a/rt/lib/RT/ScripActions.pm
+++ b/rt/lib/RT/ScripActions.pm
@@ -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;