[Rt-commit] rt branch, 4.0/shred-attachments-via-web, created. rt-4.0.2-138-g00ac69c
Thomas Sibley
trs at bestpractical.com
Mon Oct 3 12:36:11 EDT 2011
The branch, 4.0/shred-attachments-via-web has been created
at 00ac69cea6ac24e9f97c376381500750d9e0fe3e (commit)
- Log -----------------------------------------------------------------
commit 00ac69cea6ac24e9f97c376381500750d9e0fe3e
Author: Thomas Sibley <trs at bestpractical.com>
Date: Mon Oct 3 12:24:52 2011 -0400
The RT::Attachment object is $Object not $a
This caused the admin web interface for shredder to throw runtime errors
from Mason when trying to shred Attachments.
diff --git a/share/html/Admin/Tools/Shredder/Elements/Object/RT--Attachment b/share/html/Admin/Tools/Shredder/Elements/Object/RT--Attachment
index c51c7a8..99848dd 100644
--- a/share/html/Admin/Tools/Shredder/Elements/Object/RT--Attachment
+++ b/share/html/Admin/Tools/Shredder/Elements/Object/RT--Attachment
@@ -48,7 +48,7 @@
<%ARGS>
$Object => undef
</%ARGS>
-% my $name = (defined $a->Filename and length $a->Filename) ? $a->Filename : loc("(no value)");
+% my $name = (defined $Object->Filename and length $Object->Filename) ? $Object->Filename : loc("(no value)");
<a href="<% RT->Config->Get('WebURL') %>/Ticket/Attachment/<% $Object->TransactionId %>/<% $Object->id %>/">
<% loc('Attachment') %>(<% loc('id') %>:<% $Object->id %>, <% loc('Filename') %>: <% $name %>)
</a>
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list