projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT 4.2.11, ticket#13852
[freeside.git]
/
rt
/
etc
/
upgrade
/
4.0.0rc7
/
content
diff --git
a/rt/etc/upgrade/4.0.0rc7/content
b/rt/etc/upgrade/4.0.0rc7/content
index
d0d210b
..
4fd63e7
100644
(file)
--- a/
rt/etc/upgrade/4.0.0rc7/content
+++ b/
rt/etc/upgrade/4.0.0rc7/content
@@
-1,19
+1,22
@@
-@Initial = (
+use strict;
+use warnings;
+
+our @Initial = (
sub {
sub {
-
$RT::
Logger->debug("Going to set lifecycle for approvals");
+
RT->
Logger->debug("Going to set lifecycle for approvals");
my $queue = RT::Queue->new( RT->SystemUser );
$queue->Load('___Approvals');
unless ( $queue->id ) {
my $queue = RT::Queue->new( RT->SystemUser );
$queue->Load('___Approvals');
unless ( $queue->id ) {
-
$RT::
Logger->warning("There is no ___Approvals queue in the DB");
+
RT->
Logger->warning("There is no ___Approvals queue in the DB");
return 1;
}
return 1;
}
- return 1 if $queue->Lifecycle
->Nam
e eq 'approvals';
+ return 1 if $queue->Lifecycle
&& $queue->Lifecycl
e eq 'approvals';
my ($status, $msg) = $queue->SetLifecycle('approvals');
unless ( $status ) {
my ($status, $msg) = $queue->SetLifecycle('approvals');
unless ( $status ) {
-
$RT::
Logger->error("Couldn't set lifecycle for '___Approvals' queue: $msg");
+
RT->
Logger->error("Couldn't set lifecycle for '___Approvals' queue: $msg");
return 0;
}
return 1;
return 0;
}
return 1;