projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git.freeside.biz:/home/git/freeside
[freeside.git]
/
rt
/
lib
/
RT
/
ScripConditions.pm
diff --git
a/rt/lib/RT/ScripConditions.pm
b/rt/lib/RT/ScripConditions.pm
index
9555e22
..
dc97a16
100755
(executable)
--- a/
rt/lib/RT/ScripConditions.pm
+++ b/
rt/lib/RT/ScripConditions.pm
@@
-70,41
+70,29
@@
package RT::ScripConditions;
use strict;
use warnings;
use strict;
use warnings;
+use base 'RT::SearchBuilder';
use RT::ScripCondition;
use RT::ScripCondition;
-use base 'RT::SearchBuilder';
-
sub Table { 'ScripConditions'}
sub LimitToType {
my $self = shift;
my $type = shift;
$self->Limit (ENTRYAGGREGATOR => 'OR',
sub Table { 'ScripConditions'}
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',
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');
-
-}
-
+ FIELD => 'Type',
+ VALUE => 'any');
-=head2 NewItem
-
-Returns an empty new RT::ScripCondition item
-
-=cut
-
-sub NewItem {
- my $self = shift;
- return(RT::ScripCondition->new($self->CurrentUser));
}
}
+
RT::Base->_ImportOverlays();
1;
RT::Base->_ImportOverlays();
1;