[rt-users] ShowAttachments error in Approvals

Vipool Rathod Vipool.Rathod at gsfc.nasa.gov
Fri Oct 15 11:46:14 EDT 2004


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
Subject: PR Approval: {$Tickets{"TOP"}->Id} - {$Tickets{'TOP'}->Subject}
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}
ENDOFCONTENT


On 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
>> _______________________________________________
>> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>> 
>> 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 at gsfc.nasa.gov



More information about the rt-users mailing list