[Rt-commit] rt branch, 4.2/attach-from-transactions, updated. rt-4.0.1-405-gae16e97
Thomas Sibley
trs at bestpractical.com
Tue Oct 18 13:25:43 EDT 2011
The branch, 4.2/attach-from-transactions has been updated
via ae16e9720470778211f6b6802413a8417506104b (commit)
from d164d13c060afa8a392e14dbd3c2e93e7067657e (commit)
Summary of changes:
share/html/Ticket/Elements/AddAttachments | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit ae16e9720470778211f6b6802413a8417506104b
Author: Thomas Sibley <trs at bestpractical.com>
Date: Tue Oct 18 13:25:06 2011 -0400
Link to the download page for existing attachments
This lets people quickly verify the attachments they're including.
diff --git a/share/html/Ticket/Elements/AddAttachments b/share/html/Ticket/Elements/AddAttachments
index 7bf1081..aeec6a2 100644
--- a/share/html/Ticket/Elements/AddAttachments
+++ b/share/html/Ticket/Elements/AddAttachments
@@ -67,7 +67,12 @@
<label>
<input type="checkbox" class="checkbox" name="AttachExisting" value="<% $attach->Id %>" \
<% (grep { $attach->Id == $_ } @AttachExisting) ? 'checked' : '' %> />
- <% $attach->Filename %>
+<%perl>
+my $url = sprintf '%s/Ticket/Attachment/%d/%d/%s',
+ RT->Config->Get('WebPath'), $attach->TransactionObj->Id, $attach->Id,
+ $m->interp->apply_escapes($attach->Filename, 'u');
+</%perl>
+ <a href="<% $url %>" target="_blank"><% $attach->Filename %></a>
</label><br />
% }
</td>
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list