[rt-users] minor problem with RT-RepeatTicket and 4.2.0
Jaye Mathisen
mrcpu at lilpantry.com
Wed Oct 9 23:48:42 EDT 2013
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mrcpu.vcf
Type: text/x-vcard
Size: 166 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20131009/81ce81a6/attachment.vcf>
More information about the rt-users
mailing list