From f770095a34894673cfecf1caf520b8ab87038e81 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Thu, 21 Oct 2010 01:24:05 +0200 Subject: Bug 598014: Document how to mark the initial comment as private when using Bug.create() r/a=mkanat --- enter_bug.cgi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'enter_bug.cgi') diff --git a/enter_bug.cgi b/enter_bug.cgi index af37caf89..2b54800cc 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -452,14 +452,14 @@ if ($cloned_bug_id) { my $bug_desc = $cloned_bug->comments({ order => 'oldest_to_newest' })->[0]; my $isprivate = $bug_desc->is_private; - $vars->{'comment'} = ""; - $vars->{'commentprivacy'} = 0; + $vars->{'comment'} = ""; + $vars->{'comment_is_private'} = 0; if (!$isprivate || Bugzilla->user->is_insider) { # We use "body" to avoid any format_comment text, which would be # pointless to clone. - $vars->{'comment'} = $bug_desc->body; - $vars->{'commentprivacy'} = $isprivate; + $vars->{'comment'} = $bug_desc->body; + $vars->{'comment_is_private'} = $isprivate; } } # end of cloned bug entry form @@ -484,7 +484,7 @@ else { $vars->{'cc'} = join(', ', $cgi->param('cc')); $vars->{'comment'} = formvalue('comment'); - $vars->{'commentprivacy'} = formvalue('commentprivacy'); + $vars->{'comment_is_private'} = formvalue('comment_is_private'); } # end of normal/bookmarked entry form -- cgit v1.2.3-24-g4f1b