From 7dd1fe9252cad62415f258cb6dc6e9c0bb6e69a2 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Fri, 31 Oct 2014 17:48:37 +0300 Subject: [PATCH] Put cloned bug title into bug from which it was cloned --- post_bug.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/post_bug.cgi b/post_bug.cgi index d3300b8df..eefe6d04d 100755 --- a/post_bug.cgi +++ b/post_bug.cgi @@ -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 });