diff options
author | mkanat%bugzilla.org <> | 2009-12-04 14:28:47 +0000 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2009-12-04 14:28:47 +0000 |
commit | bc19204d3dffa448b364bfa4b5691a24f39f6765 (patch) | |
tree | 1fa13715dc812d8e36240a85374a34b29248973a /attachment.cgi | |
parent | 9c623cb93101c9bb8bf8c0428ca66dd5f7fdc63d (diff) | |
download | bugs-bc19204d3dffa448b364bfa4b5691a24f39f6765.tar bugs-bc19204d3dffa448b364bfa4b5691a24f39f6765.tar.gz bugs-bc19204d3dffa448b364bfa4b5691a24f39f6765.tar.bz2 bugs-bc19204d3dffa448b364bfa4b5691a24f39f6765.tar.xz bugs-bc19204d3dffa448b364bfa4b5691a24f39f6765.zip |
Bug 452919: Allow the "created an attachment" message in comments to be localized
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
Diffstat (limited to 'attachment.cgi')
-rwxr-xr-x | attachment.cgi | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/attachment.cgi b/attachment.cgi index a10d9f970..a89a46b99 100755 --- a/attachment.cgi +++ b/attachment.cgi @@ -483,11 +483,10 @@ sub insert { $attachment->update($timestamp); # Insert a comment about the new attachment into the database. - my $comment = "Created an attachment (id=" . $attachment->id . ")\n" . - $attachment->description . "\n"; - $comment .= ("\n" . $cgi->param('comment')) if defined $cgi->param('comment'); - - $bug->add_comment($comment, { isprivate => $attachment->isprivate }); + my $comment = $cgi->param('comment'); + $bug->add_comment($comment, { isprivate => $attachment->isprivate, + type => CMT_ATTACHMENT_CREATED, + extra_data => $attachment->id }); # Assign the bug to the user, if they are allowed to take it my $owner = ""; |