Commit 90f9c190 authored by sunnavy's avatar sunnavy
Browse files

we want to exclude the attachment that's been used as the content of message,...

we want to exclude the attachment that's been used as the content of message, not only text/plain, but all the text/

git-svn-id: svn+ssh://svn.bestpractical.com/svn/bps-public/rt/branches/3.8-TESTING@12755 e417ac7c-1bcc-0310-8ffa-8f5827389a85
parent 38d9469f
......@@ -362,14 +362,12 @@ sub AddAttachments {
$attachments->OrderBy( FIELD => 'id' );
# We want to make sure that we don't include the attachment that's
# being sued as the "Content" of this message"
# being used as the "Content" of this message" unless that attachment's
# content type is not like text/...
my $transaction_content_obj = $self->TransactionObj->ContentObj;
# XXX: this is legacy check of content type looks quite incorrect
# to me //ruz
if ( $transaction_content_obj
&& $transaction_content_obj->id
&& $transaction_content_obj->ContentType =~ m{text/plain}i )
&& $transaction_content_obj->ContentType =~ m{text/}i )
{
$attachments->Limit(
ENTRYAGGREGATOR => 'AND',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment