Bug 66177

git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@857 6955db30-a419-402b-8a0d-67ecbb4d7f56
master
vfilippov 2010-07-07 19:31:06 +00:00
parent 6063691da7
commit 8ae26b1c58
1 changed files with 5 additions and 0 deletions

View File

@ -489,6 +489,11 @@ if ($cloned_bug_id) {
$vars->{'cloned_comment'} = $cloned_comment;
$vars->{'comment'} = $bug_desc->[$cloned_comment]->body;
$vars->{'comment'} =~ s!bug\s*#?\s*(\d+)\s*,?\s*comment\s*#?\s*(\d+)!Bug $cloned_bug_id, comment $2!gso;
# CustIS Bug 66177: Attachment link in cloned comment
if ($bug_desc->[$cloned_comment]->type == CMT_ATTACHMENT_CREATED)
{
$vars->{comment} = "Created attachment ".$bug_desc->[$cloned_comment]->extra_data."\n$vars->{comment}";
}
$vars->{'commentprivacy'} = $isprivate;
}