projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rt 4.0.20 (RT#13852)
[freeside.git]
/
rt
/
lib
/
RT
/
Lifecycle.pm
diff --git
a/rt/lib/RT/Lifecycle.pm
b/rt/lib/RT/Lifecycle.pm
index
c905282
..
bdb2ba6
100644
(file)
--- a/
rt/lib/RT/Lifecycle.pm
+++ b/
rt/lib/RT/Lifecycle.pm
@@
-2,7
+2,7
@@
#
# COPYRIGHT:
#
#
# COPYRIGHT:
#
-# This software is Copyright (c) 1996-201
3
Best Practical Solutions, LLC
+# This software is Copyright (c) 1996-201
4
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)
@@
-298,7
+298,7
@@
sub IsActive {
return 0;
}
return 0;
}
-=head3
i
nactive
+=head3
I
nactive
Returns an array of all inactive statuses for this lifecycle.
Returns an array of all inactive statuses for this lifecycle.
@@
-309,7
+309,7
@@
sub Inactive {
return $self->Valid('inactive');
}
return $self->Valid('inactive');
}
-=head3
is_i
nactive
+=head3
IsI
nactive
Takes a value and returns true if value is a valid inactive status.
Otherwise, returns false.
Takes a value and returns true if value is a valid inactive status.
Otherwise, returns false.
@@
-707,11
+707,11
@@
sub FillCache {
}
my %seen;
}
my %seen;
- @statuses = grep !$seen{ $_ }++, @statuses;
+ @statuses = grep !$seen{
lc
$_ }++, @statuses;
$lifecycle->{''} = \@statuses;
unless ( $lifecycle->{'transitions'}{''} ) {
$lifecycle->{''} = \@statuses;
unless ( $lifecycle->{'transitions'}{''} ) {
- $lifecycle->{'transitions'}{''} = [ grep $_ ne 'deleted', @statuses ];
+ $lifecycle->{'transitions'}{''} = [ grep
lc
$_ ne 'deleted', @statuses ];
}
my @actions;
}
my @actions;
@@
-767,7
+767,7
@@
sub FillCache {
foreach my $type ( qw(initial active inactive), '' ) {
my %seen;
foreach my $type ( qw(initial active inactive), '' ) {
my %seen;
- @{ $all{ $type } } = grep !$seen{ $_ }++, @{ $all{ $type } };
+ @{ $all{ $type } } = grep !$seen{
lc
$_ }++, @{ $all{ $type } };
push @{ $all{''} }, @{ $all{ $type } } if $type;
}
$LIFECYCLES_CACHE{''} = \%all;
push @{ $all{''} }, @{ $all{ $type } } if $type;
}
$LIFECYCLES_CACHE{''} = \%all;