[Rt-commit] r7019 - rt/branches/3.6-RELEASE/html/Ticket/Elements

ruz at bestpractical.com ruz at bestpractical.com
Thu Feb 15 14:01:17 EST 2007


Author: ruz
Date: Thu Feb 15 14:01:12 2007
New Revision: 7019

Modified:
   rt/branches/3.6-RELEASE/html/Ticket/Elements/ShowTransaction

Log:
* use a local array of attachments we have instead of $Transaction->Attachments call

Modified: rt/branches/3.6-RELEASE/html/Ticket/Elements/ShowTransaction
==============================================================================
--- rt/branches/3.6-RELEASE/html/Ticket/Elements/ShowTransaction	(original)
+++ rt/branches/3.6-RELEASE/html/Ticket/Elements/ShowTransaction	Thu Feb 15 14:01:12 2007
@@ -146,15 +146,15 @@
 if ( $Transaction->Type =~ /EmailRecord$/ ) {
     @DisplayHeaders = qw(To Cc Bcc);
 
+    my $aid = 
+
     $titlebar_commands .=
         "[<a target=\"_blank\" href=\"$EmailRecordPath?id="
       . $Transaction->Ticket
       . "&Transaction="
       . $Transaction->Id
       . "&Attachment="
-      . (    $Transaction->Attachments->First
-          && $Transaction->Attachments->First->Id )
-
+      . ( $Attachments->[0] && $Attachments->[0]->id )
       . '">' . loc('Show') . "</a>]&nbsp;";
     $ShowBody = 0;
 }


More information about the Rt-commit mailing list