<%args> $Attachment => undef $Transaction => undef <%init> my $AttachmentObj = new RT::Attachment($session{'CurrentUser'}); $AttachmentObj->Load($Attachment) || Abort(loc("Attachment '[_1]' could not be loaded", $Attachment)); unless ($AttachmentObj->id) { Abort(loc("Attachment '[_1]' could not be loaded", $Attachment)); } unless ($AttachmentObj->TransactionId() == $Transaction ) { Abort(loc("Attachment '[_1]' could not be loaded", $Attachment)); } <& /Elements/Header, ShowBar => 0 &>
<%$AttachmentObj->Headers%>

<%$AttachmentObj->Content%>
%$m->abort;