Approval issue

Has anyone else experienced this error with a ticket of Type: Approval ?

I am using an extremely simple template to create the approval ticket:

===Create-Ticket: prodpromoSubject: Approval Required: Prod Promo - {$Tickets{‘TOP’}->Subject}

Depended-On-By: {$Tickets{‘TOP’}->Id}

Refers-To: {$Tickets{“TOP”}->Id}

Queue: 7

Type: Approval

Content: A promotion has been submitted. Please review the child ticket and
Approve/Disapprove the promotion accordingly.

ENDOFCONTENT

When I select Approval → Then click on the ticket # header under My
Approvals I get the following error in the Tickets which depend on this
approval.

error:

Can’t call method “Next” on an undefined value at
/opt/rt3/share/html/Ticket/Elements/ShowAttachments line 87.

context:

83:

84:

<%INIT>

85:

my %documents;

86:

87:

while ( my $attach = $Attachments->Next() ) {

88:

next unless ($attach->Filename());

89:

unshift( @{ $documents{ $attach->Filename } }, $attach );

90:

}

91:

code stack:

/opt/rt3/share/html/Ticket/Elements/ShowAttachments:87
/opt/rt3/share/html/Ticket/Elements/ShowSummary:90
/opt/rt3/share/html/Approvals/Elements/ShowDependency:69
/opt/rt3/share/html/Approvals/Display.html:62
/opt/rt3/share/html/autohandler:221

raw http://track.wginteractive.com/Approvals/Display.html?id=8#raw#raw
error

Can’t call method “Next” on an undefined value at
/opt/rt3/share/html/Ticket/Elements/ShowAttachments line 87.

Trace begun at /usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Exceptions.pm line
131
HTML::Mason::Exceptions::rethrow_exception(‘Can't call method “Next” on an
undefined value at /opt/rt3/share/html/Ticket/Elements/ShowAttachments line
87.^J’) called at /opt/rt3/share/html/Ticket/Elements/ShowAttachments line
87
HTML::Mason::Commands::ANON(‘Ticket’, ‘RT::Ticket=HASH(0x99caf08)’,
‘Attachments’, undef) called at
/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Component.pm line 134
HTML::Mason::Component::run(‘HTML::Mason::Component::FileBased=HASH(0x9e915d
0)’, ‘Ticket’, ‘RT::Ticket=HASH(0x99caf08)’, ‘Attachments’, undef) called at
/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Request.pm line 1074
eval {…} at /usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Request.pm line 1068
HTML::Mason::Request::comp(undef, undef, ‘Ticket’,
‘RT::Ticket=HASH(0x99caf08)’, ‘Attachments’, undef) called at
/opt/rt3/share/html/Ticket/Elements/ShowSummary line 90
HTML::Mason::Commands::ANON(‘Ticket’, ‘RT::Ticket=HASH(0x99caf08)’)
called at /usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Component.pm line 134
HTML::Mason::Component::run(‘HTML::Mason::Component::FileBased=HASH(0x9d9e52
0)’, ‘Ticket’, ‘RT::Ticket=HASH(0x99caf08)’) called at
/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Request.pm line 1074
eval {…} at /usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Request.pm line 1068
HTML::Mason::Request::comp(undef, undef, undef, ‘Ticket’,
‘RT::Ticket=HASH(0x99caf08)’) called at
/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Request.pm line 1113
HTML::Mason::Request::scomp(‘HTML::Mason::Request::ApacheHandler=HASH(0x999c
fa8)’, ‘/Ticket/Elements/ShowSummary’, ‘Ticket’,
‘RT::Ticket=HASH(0x99caf08)’) called at
/opt/rt3/share/html/Approvals/Elements/ShowDependency line 69
HTML::Mason::Commands::ANON(‘Ticket’, ‘RT::Ticket=HASH(0x9d8d720)’)
called at /usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Component.pm line 134
HTML::Mason::Component::run(‘HTML::Mason::Component::FileBased=HASH(0x9d4ec6
c)’, ‘Ticket’, ‘RT::Ticket=HASH(0x9d8d720)’) called at
/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Request.pm line 1074
eval {…} at /usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Request.pm line 1068
HTML::Mason::Request::comp(undef, undef, ‘Ticket’,
‘RT::Ticket=HASH(0x9d8d720)’) called at
/opt/rt3/share/html/Approvals/Display.html line 62
HTML::Mason::Commands::ANON(‘id’, 8, ‘id’, 8) called at
/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Component.pm line 134
HTML::Mason::Component::run(‘HTML::Mason::Component::FileBased=HASH(0x9d53d1
0)’, ‘id’, 8, ‘id’, 8) called at
/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Request.pm line 1074
eval {…} at /usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Request.pm line 1068
HTML::Mason::Request::comp(undef, undef, ‘id’, 8, ‘id’, 8) called at
/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Request.pm line 760
HTML::Mason::Request::call_next(‘HTML::Mason::Request::ApacheHandler=HASH(0x
999cfa8)’, ‘id’, 8) called at /opt/rt3/share/html/autohandler line 221
HTML::Mason::Commands::ANON(‘id’, 8) called at
/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Component.pm line 134
HTML::Mason::Component::run(‘HTML::Mason::Component::FileBased=HASH(0x99e948
4)’, ‘id’, 8) called at /usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Request.pm
line 1069
eval {…} at /usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Request.pm line 1068
HTML::Mason::Request::comp(undef, undef, undef, ‘id’, 8) called at
/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Request.pm line 338
eval {…} at /usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Request.pm line 338
eval {…} at /usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Request.pm line 297
HTML::Mason::Request::exec(‘HTML::Mason::Request::ApacheHandler=HASH(0x999cf
a8)’) called at /usr/lib/perl5/site_perl/5.8.3/HTML/Mason/ApacheHandler.pm
line 134
eval {…} at /usr/lib/perl5/site_perl/5.8.3/HTML/Mason/ApacheHandler.pm
line 134
HTML::Mason::Request::ApacheHandler::exec(‘HTML::Mason::Request::ApacheHandl
er=HASH(0x999cfa8)’) called at
/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/ApacheHandler.pm line 792
HTML::Mason::ApacheHandler::handle_request(‘HTML::Mason::ApacheHandler=HASH(
0x989dca4)’, ‘Apache=SCALAR(0x9a75dbc)’) called at /opt/rt3/bin/webmux.pl
line 126
eval {…} at /opt/rt3/bin/webmux.pl line 126
RT::Mason::handler(‘Apache=SCALAR(0x9a75dbc)’) called at /dev/null line 0
eval {…} at /dev/null line 0

(I also seem to have to use a Queue number here rather than the Queue name
or I get this error)

[Fri Nov 5 04:38:30 2004] [debug]: Workflow: evaluating

Subject: Approval Required: Prod Promo - {$Tickets{‘TOP’}->Subject}

Depended-On-By: {$Tickets{‘TOP’}->Id}

Refers-To: {$Tickets{“TOP”}->Id}

Queue: ProductionApproval

Type: Approval

Content: A promotion has been submitted. Please review the child ticket and
Approve/Disapprove the promotion accordingly.

ENDOFCONTENT

(/opt/rt3/lib/RT/Action/CreateTickets.pm:952)

[Fri Nov 5 04:38:30 2004] [debug]: Workflow: yielding

Subject: Approval Required: Prod Promo - Test

Depended-On-By: 6

Refers-To: 6

Queue: ProductionApproval

Type: Approval

Content: A promotion has been submitted by QA for release to production.
Please review the child ticket and Approve/Disapprove the promotion
accordingly.

ENDOFCONTENT

(/opt/rt3/lib/RT/Action/CreateTickets.pm:968)

[Fri Nov 5 04:38:30 2004] [debug]: RT::Ticket=HASH(0x9d61dd8) No queue
given for ticket creation. (/opt/rt3/lib/RT/Ticket_Overlay.pm:386)

Andrew Greenwood

Systems Administrator

World Gaming PLC.

(604) 306-3732

Andrew Greenwood

Systems Administrator

World Gaming PLC.

(604) 306-3732

Has anyone else experienced this error with a ticket of Type: Approval ?

RT 3.2.3 will fix this. (I just committed the patch)