I had a nice install of 4.0.17 working and we decided to upgrade to 4.2
before deployment. 99.9% of things are working great.
Except for this:
[62873] [Thu Oct 10 03:30:02 2013] [info]: Repeating ticket 1
(/opt/rt4/sbin/rt-repeat-ticket:38)
[62873] [Thu Oct 10 03:30:02 2013] [critical]: Can’t locate object
method “IsInactive” via package “default” (perhaps you forgot to load
"default"?) at
/opt/rt4/local/plugins/RT-Extension-RepeatTicket/lib/RT/Extension/RepeatTicket.pm
line 467. (/opt/rt4/lib/RT.pm:391)
Can’t locate object method “IsInactive” via package “default” (perhaps
you forgot to load “default”?) at
/opt/rt4/local/plugins/RT-Extension-RepeatTicket/lib/RT/Extension/RepeatTicket.pm
line 467.
Any ideas on a quick hack to fix? Can I just change IsInactive to
is_inactive? Or perhaps remove the ! and change to IsActive.
THe code in question is:
sub GetActiveTickets {
my $content = shift;
my $tickets_ref = $content->{tickets} || [];
@$tickets_ref = grep {
my $t = RT::Ticket->new( RT->SystemUser );
$t->Load($_);
!$t->QueueObj->Lifecycle->IsInactive( $t->Status );
} @$tickets_ref;
return $tickets_ref;
}
Jaye Mathisen, Lil Pantry
P:541-476-0152
F:541-476-0152
mrcpu.vcf (166 Bytes)
I had a nice install of 4.0.17 working and we decided to upgrade to 4.2
before deployment. 99.9% of things are working great.
Except for this:
[62873] [Thu Oct 10 03:30:02 2013] [info]: Repeating ticket 1
(/opt/rt4/sbin/rt-repeat-ticket:38)
[62873] [Thu Oct 10 03:30:02 2013] [critical]: Can’t locate object
method “IsInactive” via package “default” (perhaps you forgot to load
“default”?) at
/opt/rt4/local/plugins/RT-Extension-RepeatTicket/lib/RT/Extension/RepeatTicket.pm
line 467. (/opt/rt4/lib/RT.pm:391)
Can’t locate object method “IsInactive” via package “default” (perhaps
you forgot to load “default”?) at
/opt/rt4/local/plugins/RT-Extension-RepeatTicket/lib/RT/Extension/RepeatTicket.pm
line 467.
Any ideas on a quick hack to fix? Can I just change IsInactive to
is_inactive? Or perhaps remove the ! and change to IsActive.
Lifecycle now needs to be LifecycleObj for 4.2.
I just uploaded a new version of RepeatTicket to cpan (0.05). It might
take a bit to become available. Can you try with the new version?
Seems to be working fine.
Many Thanks.
J.On 10/10/2013 8:23 AM, Jim Brandt wrote:
On 10/9/13 11:48 PM, Jaye Mathisen wrote:
I had a nice install of 4.0.17 working and we decided to upgrade to 4.2
before deployment. 99.9% of things are working great.
Except for this:
[62873] [Thu Oct 10 03:30:02 2013] [info]: Repeating ticket 1
(/opt/rt4/sbin/rt-repeat-ticket:38)
[62873] [Thu Oct 10 03:30:02 2013] [critical]: Can’t locate object
method “IsInactive” via package “default” (perhaps you forgot to load
“default”?) at
/opt/rt4/local/plugins/RT-Extension-RepeatTicket/lib/RT/Extension/RepeatTicket.pm
line 467. (/opt/rt4/lib/RT.pm:391)
Can’t locate object method “IsInactive” via package “default” (perhaps
you forgot to load “default”?) at
/opt/rt4/local/plugins/RT-Extension-RepeatTicket/lib/RT/Extension/RepeatTicket.pm
line 467.
Any ideas on a quick hack to fix? Can I just change IsInactive to
is_inactive? Or perhaps remove the ! and change to IsActive.
Lifecycle now needs to be LifecycleObj for 4.2.
I just uploaded a new version of RepeatTicket to cpan (0.05). It might
take a bit to become available. Can you try with the new version?
Jaye Mathisen, Lil Pantry
P:541-476-0152
F:541-476-0152
mrcpu.vcf (176 Bytes)