ShowAttachments error in Approvals

Hello All,

Getting a strange error in Approvals. When one is created (using the
example in the manual) it shows up just fine with Allow, Deny, and Ignore
with notes. However, there is no Submit button. Also, when I click on the
ticket/approval, I get a submit button, but under “Tickets which depend on
this approval:” I get the following:

error: Can’t call method “Next” on an undefined value at
/ltp/web/web/rt/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:
/ltp/web/web/rt/share/html/Ticket/Elements/ShowAttachments:87
/ltp/web/web/rt/share/html/Ticket/Elements/ShowSummary:68
/ltp/web/web/rt/share/html/Approvals/Elements/ShowDependency:47
/ltp/web/web/rt/share/html/Approvals/Display.html:40
/ltp/web/web/rt/share/html/autohandler:199

raw error

Anyone run into this before or have any suggestions?

Thanks,
Vip

Vip,

What version of RT are you running?

Best,
JesseOn Oct 15, 2004, at 9:43 AM, Vipool Rathod wrote:

Hello All,

Getting a strange error in Approvals. When one is created (using the
example in the manual) it shows up just fine with Allow, Deny, and
Ignore with notes. However, there is no Submit button. Also, when I
click on the ticket/approval, I get a submit button, but under
“Tickets which depend on this approval:” I get the following:

error: Can’t call method “Next” on an undefined value at
/ltp/web/web/rt/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:
/ltp/web/web/rt/share/html/Ticket/Elements/ShowAttachments:87
/ltp/web/web/rt/share/html/Ticket/Elements/ShowSummary:68
/ltp/web/web/rt/share/html/Approvals/Elements/ShowDependency:47
/ltp/web/web/rt/share/html/Approvals/Display.html:40
/ltp/web/web/rt/share/html/autohandler:199

raw error

Anyone run into this before or have any suggestions?

Thanks,
Vip


The rt-users Archives

Be sure to check out the RT wiki at http://wiki.bestpractical.com

I’m at version 3.2.2. I was at 3.2.1 when I encountered the error. I just
upgraded last night to see if it was fixed. Unfortunately, the error still
happens. Here’s my approval template:

===Create-Ticket: approval
Depended-On-By: {$Tickets{‘TOP’}->Id}
Queue: pr
Type: Approval
Content: Your approval is requested for the purchase request
{$Tickets{“TOP”}->Id}: {$Tickets{“TOP”}->Subject}
ENDOFCONTENTOn Fri, 15 Oct 2004, Jesse Vincent wrote:

Vip,

What version of RT are you running?

Best,
Jesse
On Oct 15, 2004, at 9:43 AM, Vipool Rathod wrote:

Hello All,

Getting a strange error in Approvals. When one is created (using the
example in the manual) it shows up just fine with Allow, Deny, and Ignore
with notes. However, there is no Submit button. Also, when I click on the
ticket/approval, I get a submit button, but under “Tickets which depend on
this approval:” I get the following:

error: Can’t call method “Next” on an undefined value at
/ltp/web/web/rt/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: /ltp/web/web/rt/share/html/Ticket/Elements/ShowAttachments:87
/ltp/web/web/rt/share/html/Ticket/Elements/ShowSummary:68
/ltp/web/web/rt/share/html/Approvals/Elements/ShowDependency:47
/ltp/web/web/rt/share/html/Approvals/Display.html:40
/ltp/web/web/rt/share/html/autohandler:199

raw error

Anyone run into this before or have any suggestions?

Thanks,
Vip


The rt-users Archives

Be sure to check out the RT wiki at http://wiki.bestpractical.com

Vipool Rathod - Unix System Administrator
Science Systems & Applications, Inc. - http://www.ssaihq.com
Laboratory for Terrestrial Physics Computing Facility
http://ltpwww.gsfc.nasa.gov/ltp/ltpcf.html
tel:301.614.6258
fax:301.614.6015
mailto:Vipool.Rathod@gsfc.nasa.gov

Hi,

same error appear in RT version 3.0.11

Apache/1.3.31
mod_perl/1.29
DBIx::SearchBuilder 1.11

Eduard

For now, I did a workaround. I copied
~rt/local/html/Ticket/Elements/ShowAttachments to
~rt/local/html/Ticket/Elements/ShowAttachments and put an if statement in:

if ( $Attachments ) {
while ( my $attach = $Attachments->Next() ) {
next unless ($attach->Filename());
unshift( @{ $documents{ $attach->Filename } }, $attach );
}
}

It’s not pretty, but please let me know if there’s a better way. Also, you
don’t have to make the copy. I did b/c I’m not sure it will be fixed in
later versions. I saw at least 2 other people with the same problem before
version 3.2.2.

VipOn Mon, 18 Oct 2004, Eduard Rushanian wrote:

Hi,

same error appear in RT version 3.0.11

Apache/1.3.31
mod_perl/1.29
DBIx::SearchBuilder 1.11

Eduard

Vipool Rathod - Unix System Administrator
Science Systems & Applications, Inc. - http://www.ssaihq.com
Laboratory for Terrestrial Physics Computing Facility
http://ltpwww.gsfc.nasa.gov/ltp/ltpcf.html
tel:301.614.6258
fax:301.614.6015
mailto:Vipool.Rathod@gsfc.nasa.gov