Put cloned bug title into bug from which it was cloned

hinted-selects
Vitaliy Filippov 2014-10-31 17:48:37 +03:00
parent 72968d2da1
commit 7dd1fe9252
1 changed files with 2 additions and 2 deletions

View File

@ -182,8 +182,8 @@ $bug->update;
if ($ARGS->{cloned_bug_id})
{
# Add a comment to cloned bug
my $cmt = "Bug ".$bug->id." was cloned from ".
($ARGS->{cloned_comment} =~ /(\d+)/ ? "comment $1" : 'this bug');
my $cmt = "Bug ".$bug->id." (".$bug->short_desc.") was cloned from ".
($ARGS->{cloned_comment} =~ /(\d+)/ && $1 ? "comment $1" : 'this bug');
my $cloned_bug = Bugzilla::Bug->check($ARGS->{cloned_bug_id});
$cloned_bug->add_comment($cmt);
Bugzilla::Hook::process('post_bug_cloned_bug', { bug => $bug, cloned_bug => $cloned_bug });