[rt-devel] Bug report (lasttrans anchor)

Sergey Gurov cec2000 at mail.ru
Tue Mar 4 10:20:08 EST 2003


Hi,

RT 2.0.15
IE 6.0.2800

In ticket history display mode (Display.html) a link from
Dates-Updated-<date data> field to #lasttrans anchor is created. But it
doesn't work. You may click it but nothing happens. It is because target
anchor is in wrong place: it is inserted outside any <tr> tag in table
(check this by adding some text inside <a name=#lasttrans>my text</a>).

I've patched this by passing the LastTrans argument to ShowTransaction
element and placing this anchor just before TicketId anchor tag. See
diff below.

Sergey.

=================================
bash-2.05b# diff ShowHistory
../../../../local/WebRT/html/Ticket/Elements/
24,27c24
< %     if ($Transactions->IsLast) {
< <a name="lasttrans"></a>
< %     }
<           <& ShowTransaction, Ticket => $Ticket, Transaction =>
$Transaction, ShowHeaders => $ShowHeaders, Collapsed => $Collapsed,
RowNum => $i   &>
---
>           <& ShowTransaction, Ticket => $Ticket, Transaction =>
$Transaction, ShowHeaders => $ShowHeaders, Collapsed => $Collapsed,
RowNum => $i, LastTrans => $Transactions->IsLast  &>

=================================

bash-2.05b# diff ShowTransaction
../../../../local/WebRT/html/Ticket/Elements/
2c2
< <TD bgcolor="<%$bgcolor%>"><A
NAME="#<%$Transaction->Id%>"></A>&nbsp&nbsp;</TD>
---
> <TD bgcolor="<%$bgcolor%>"><%$LastTrans?'<A
NAME="lasttrans"></A>':''|n%><A
NAME="#<%$Transaction->Id%>"></A>&nbsp&nbsp;</TD>
93a94
> $LastTrans => 0

=================================




More information about the Rt-devel mailing list