[Rt-devel] Problems with FirstCustomFieldValue
Laura Skosnik
laura.skosnik at thelevel.com
Thu Feb 9 20:41:26 EST 2006
Hi,
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%>
<TR>
<TH><&|/l&>Subject</&></TH>
<TH><&|/l&>Issue Priority</&></TH>
<TH><&|/l&>Schedule</&></TH>
<TH><&|/l&>Status</&></TH>
<TH><&|/l&>Owner</&></TH>
</TR>
<TR>
% while (my $Ticket = $MyTickets->Next) {
% my $Schedule = $Ticket->FirstCustomFieldValue('Schedule') || '';
<TR>
<TD>
<a
href="<%$RT::WebPath%>/SelfService/Display.html?id=<%$Ticket->Id%>"><%$Ticket->Id%>:
<%$Ticket->Subject%></a>
</TD>
<TD>
</TD>
<TD>
<%$Schedule%>
</TD>
<TD>
<%loc($Ticket->Status)%>
</TD><TD>
<%$Ticket->OwnerObj->Name%>
</TR>
% }
</TABLE>
<& /Elements/TitleBoxEnd &>
Any help would be appreciated.
Thanks,
Laura
More information about the Rt-devel
mailing list