5 { Name => 'Open Inactive Tickets', # loc
6 Description => 'Open inactive tickets', # loc
7 ExecModule => 'AutoOpenInactive' },
10 # Ignore the above if there is already an AutoOpenInactive in the
11 # database -- i.e. originally a 4.2 install, or someone added one
15 my $exist = RT::ScripAction->new( RT->SystemUser );
16 $exist->LoadByCols( ExecModule => 'AutoOpenInactive' );
17 @ScripActions = () if $exist->Id;
21 my $queue = RT::Queue->new( RT->SystemUser );
22 my ($ok, $msg) = $queue->Load('___Approvals');
24 RT->Logger->warning("Unable to load ___Approvals: $msg");
27 unless ($queue->Disabled == 2) {
28 RT->Logger->warning("Going to force ___Approvals queue to be Disabled = 2");
29 ($ok, $msg) = $queue->SetDisabled( 2 );
31 RT->Logger->error("Unable to set ___Approvals.Disabled = 2: $msg");
36 unless ($queue->Lifecycle eq "approvals") {
37 RT->Logger->warning("Going to force ___Approvals queue to the approvals lifecycle");
38 ($ok, $msg) = $queue->SetLifecycle( "approvals" );
40 RT->Logger->error("Unable to set ___Approvals lifecycle: $msg");