Hi Ruslan,

This error occurs in ProcessObjectCustomFieldUpdates subroutine in Web.pm

The code is:
foreach my $id ( keys %{$custom_fields_to_mod{$class}} ) {

my $Object = $args{'Object'};

$Object = $class->new( $session{'CurrentUser'} )

unless $Object && ref $Object eq $class;




$Object->Load( $id ) unless ($Object->id || 0) == $id;

unless ( $Object->id ) {

$RT::Logger->warning("Couldn't load object $class #$id"); next;

}




...

But I'm not familiar with RT internals to check it...



Regards,
Sergey Kozhedub




On 09/15/2010 08:22 PM, Ruslan Zakirov wrote:
Hi,

As far as I can see error is not related to the scrip. Error happens in
Web.pm.

15.09.2010 2:50 пользователь "Sergey Kozhedub" <[email protected]
<mailto:[email protected]>> написал:

Hello all,

I'm trying to implement MuteResolve
(http://wiki.bestpractical.com/view/MuteResolve) in my RT-3.8.4
installation but it doesn't work for me.
Finally I cut my script just to:
{code}
return 0 unless ($self->TransactionObj->Type eq "Status" &&
$self->TransactionObj->NewValue eq "resolved");

return 1;
{code}

When changing status of the ticket to open I don't see any errors. But
if I resolve the ticket I always get this error in logs:
Sep 15 00:17:38 rt RT: Couldn't load object RT::Transaction #0
(/var/www/rt.iptp.net/bin/../lib/RT/Interface/Web.pm:1127
<http://rt.iptp.net/bin/../lib/RT/Interface/Web.pm:1127>)

What I'm doing wrong?

Condition: User Defined
Action: Notify Requestors
Template: Global template: Resolved
Stage: TransactionBatch


Regards,
Sergey Kozhedub

RT Training in Washington DC, USA on Oct 25 & 26 2010
Last one this year -- Learn how to get the most out of RT!



RT Training in Washington DC, USA on Oct 25 & 26 2010
Last one this year -- Learn how to get the most out of RT!

Reply via email to