[rt-users] Help with error

Dan Fiorito danf at clearnetwork.com
Thu Sep 25 13:43:38 EDT 2003


Ok here is the offending scrip

Condition =  On Status Change

No Custom Condition defined

Action = User Defined

Custom action preparation code:  1

Custom action cleanup code:

# ------------------------------------------------------------------- #
if ($self->TicketObj->NewValue eq 'resolved' or 
    $self->TicketObj->NewValue eq 'rejected') {
  my $members = $self->TicketObj->Members;
  while (my $link = $members->Next) {
    my $member= $link->BaseObj;
    if ($member->QueueObj->Name eq 'Blocks' or
        $member->QueueObj->Name eq 'Investigations' or
        $member->QueueObj->Name eq 'Incident Reports') {
      $member->Resolve();
    }
  }
}
# ------------------------------------------------------------------- #


Template:  Global Template: Blank



-----Original Message-----
From: Ruslan U. Zakirov [mailto:cubic at acronis.ru] 
Sent: Thursday, September 25, 2003 11:14 AM
To: Dan Fiorito
Cc: rt-users at lists.fsck.com
Subject: Re: [rt-users] Help with error


You've got SCRIP #31 that is User defined.
And in Action commit block this scrip call NewValue function on object 
that have type RT::Ticket, but RT::Ticket don't have such method. Cat
here this block if you want.
    Best regards. Ruslan.

Dan Fiorito wrote:

>Can someone help with this error in apache. Not sure on where to start 
>to fix it.
>
>RT 3.0.5
>Apache 1.3.28 modperl statically compiled
>Perl 5.8
>
>Thanks
>
>[Wed Sep 24 09:45:02 2003] [error]: Scrip 31 Commit failed: 
>RT::Ticket::NewValue Unimplemented in RT::Action::UserDefined. ((eval
>1945) line 3)
> 
>Stack:
>  [/usr/lib/perl5/site_perl/5.8.0/DBIx/SearchBuilder/Record.pm:457]
>  [(eval 1945):3]
>  [/opt/rt3/lib/RT/ScripAction_Overlay.pm:207]
>  [/opt/rt3/lib/RT/Scrip_Overlay.pm:409]
>  [/opt/rt3/lib/RT/Scrip_Overlay.pm:344]
>  [/opt/rt3/lib/RT/Transaction_Overlay.pm:169]
>  [/opt/rt3/lib/RT/Ticket_Overlay.pm:3799]
>  [/opt/rt3/lib/RT/Ticket_Overlay.pm:3908]
>  [/opt/rt3/lib/RT/Ticket_Overlay.pm:3317]
>  [/opt/rt3/lib/RT/Interface/Web.pm:944]
>  [/opt/rt3/lib/RT/Interface/Web.pm:1066]
>  [/opt/rt3/share/html/RTIR/Incident/BulkReply.html:125]
>  [/opt/rt3/share/html/RTIR/autohandler:2]
>  [/opt/rt3/share/html/autohandler:182]
> (/opt/rt3/lib/RT/Action/UserDefined.pm:59)
>_______________________________________________
>  
>






More information about the rt-users mailing list