projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
merge RT 4.2.11 and Header changes to disable RT javascript, RT#34237
[freeside.git]
/
rt
/
lib
/
RT
/
ScripActions.pm
diff --git
a/rt/lib/RT/ScripActions.pm
b/rt/lib/RT/ScripActions.pm
index
41ac60e
..
f663480
100755
(executable)
--- a/
rt/lib/RT/ScripActions.pm
+++ b/
rt/lib/RT/ScripActions.pm
@@
-2,7
+2,7
@@
#
# COPYRIGHT:
#
#
# COPYRIGHT:
#
-# This software is Copyright (c) 1996-201
4
Best Practical Solutions, LLC
+# This software is Copyright (c) 1996-201
5
Best Practical Solutions, LLC
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
@@
-84,29
+84,19
@@
sub LimitToType {
my $self = shift;
my $type = shift;
$self->Limit (ENTRYAGGREGATOR => 'OR',
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',
if defined $type;
$self->Limit (ENTRYAGGREGATOR => 'OR',
- FIELD => 'Type',
- VALUE => "Correspond")
+
FIELD => 'Type',
+
VALUE => "Correspond")
if $type eq "Create";
$self->Limit (ENTRYAGGREGATOR => 'OR',
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;
RT::Base->_ImportOverlays();
1;