[Rt-devel] Problems with FirstCustomFieldValue

Laura Skosnik laura.skosnik at thelevel.com
Thu Feb 9 20:41:26 EST 2006


I am trying to modify the SelfService/MyRequests page to include a 
Custom Field for each ticket.

The problem is that I am not getting the correct CustomFieldValues 
returned.  For the first ticket, I get the correct value.

For the second ticket, I don't get the correct value.  I get a value 
from another CustomField in that ticket.  The custom field following 
that value.

I am using RT 3.4.4 and the following code.

<& /Elements/TitleBoxStart, title =>  $title &>
<TABLE BORDER=0 cellspacing=1 cellpadding=1 BGCOLOR="#eeeeee" WIDTH=100%>
<TH><&|/l&>Issue Priority</&></TH>
% while (my $Ticket = $MyTickets->Next) {
% my $Schedule = $Ticket->FirstCustomFieldValue('Schedule') || '';

% }
<& /Elements/TitleBoxEnd &>

Any help would be appreciated.


More information about the Rt-devel mailing list