[rt-users] [RT 3.6.6] Small patch for RT::Transaction::ContentObj
Boris Lytochkin
boris.lytochkin at e-port.ru
Tue Apr 8 05:29:27 EDT 2008
When Quoting some transaction with multiple text/plain attachments
(one for message, and some other as named attachment) wrong
attachment can be selected.
Patch forces attachments w/o name to be selected as source for
quoting.
===============================================================
--- Transaction_Overlay.pm~ Tue Apr 8 12:45:32 2008
+++ Transaction_Overlay.pm Tue Apr 8 12:45:32 2008
@@ -388,6 +388,7 @@
elsif ( $Attachment->ContentType() =~ '^multipart/' ) {
my $plain_parts = $Attachment->Children();
$plain_parts->ContentType( VALUE => ($PreferredContentType || 'text/plain') );
+ $plain_parts->Limit(FIELD => 'Filename', VALUE => '');
# If we actully found a part, return its content
if ( $plain_parts->First && $plain_parts->First->Content ne '' ) {
--
Boris Lytochkin,
JSC e-port, Moscow
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ContentObj.patch
Type: application/octet-stream
Size: 526 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20080408/baaa0434/attachment.obj>
More information about the rt-users
mailing list