Bug 134368 - Change anchors
git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1828 6955db30-a419-402b-8a0d-67ecbb4d7f56master
parent
9b22dbcb13
commit
99c3e062a3
|
@ -1053,17 +1053,16 @@ sub update
|
||||||
# FIXME It'd be nice to track this in the bug activity.
|
# FIXME It'd be nice to track this in the bug activity.
|
||||||
}
|
}
|
||||||
|
|
||||||
# Save edited comment
|
# Save changed comments
|
||||||
foreach my $edited_comment (@{$self->{edited_comments} || []})
|
foreach my $edited_comment (@{$self->{edited_comments} || []})
|
||||||
{
|
{
|
||||||
my $c_comment = Bugzilla::Comment->new($edited_comment->{comment_id});
|
my $c_comment = Bugzilla::Comment->new($edited_comment->{comment_id});
|
||||||
if (!$c_comment->is_private || ($c_comment->is_private && $user->is_insider))
|
if (!$c_comment->is_private || $user->is_insider)
|
||||||
{
|
{
|
||||||
$dbh->do("UPDATE longdescs SET thetext = ? WHERE comment_id = ?",
|
$dbh->do("UPDATE longdescs SET thetext = ? WHERE comment_id = ?",
|
||||||
undef, $edited_comment->{thetext}, $edited_comment->{comment_id});
|
undef, $edited_comment->{thetext}, $edited_comment->{comment_id});
|
||||||
$edited_comment->{bug_id} = $self->bug_id;
|
$edited_comment->{bug_id} = $self->bug_id;
|
||||||
$edited_comment->{who} ||= $user->id;
|
$edited_comment->{who} ||= $user->id;
|
||||||
$edited_comment->{bug_when} = $delta_ts if !$edited_comment->{bug_when} || $edited_comment->{bug_when} gt $delta_ts;
|
|
||||||
my $columns = join(',', keys %$edited_comment);
|
my $columns = join(',', keys %$edited_comment);
|
||||||
my @values = values %$edited_comment;
|
my @values = values %$edited_comment;
|
||||||
my $qmarks = join(',', ('?') x @values);
|
my $qmarks = join(',', ('?') x @values);
|
||||||
|
|
|
@ -80,7 +80,7 @@
|
||||||
Attachment #[% change.attachid %]</a>
|
Attachment #[% change.attachid %]</a>
|
||||||
[% END %]
|
[% END %]
|
||||||
[% IF change.fieldname == 'longdesc' %]
|
[% IF change.fieldname == 'longdesc' %]
|
||||||
<a href="show_bug.cgi?id=[% bug.bug_id%]#[% change.comment_id FILTER html %]">
|
<a href="show_bug.cgi?id=[% bug.bug_id%]#ci[% change.comment_id FILTER html %]">
|
||||||
[% END%]
|
[% END%]
|
||||||
[%+ field_descs.${change.fieldname} || Bugzilla.get_field(change.fieldname).description FILTER html %]
|
[%+ field_descs.${change.fieldname} || Bugzilla.get_field(change.fieldname).description FILTER html %]
|
||||||
[% IF ${change.fieldname} == 'longdesc' %]
|
[% IF ${change.fieldname} == 'longdesc' %]
|
||||||
|
|
|
@ -117,10 +117,10 @@
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
||||||
<a name="[% comment.bug_when FILTER timestamp %]"></a>
|
<a name="[% comment.bug_when FILTER timestamp %]"></a>
|
||||||
|
<a name="ci[% comment.comment_id FILTER html %]"></a>
|
||||||
[% IF NOT wt_only %]
|
[% IF NOT wt_only %]
|
||||||
<span class="bz_comment_number">
|
<span class="bz_comment_number">
|
||||||
[% IF comment.author.id == user.id %]
|
[% IF comment.author.id == user.id %]
|
||||||
<a name="[% comment.comment_id FILTER html %]"></a>
|
|
||||||
[<a href="#" onclick="showEditComment([% comment.id %]); return false;">Edit Comment</a>]
|
[<a href="#" onclick="showEditComment([% comment.id %]); return false;">Edit Comment</a>]
|
||||||
[% END %]
|
[% END %]
|
||||||
<a name="c[% comment.count %]"
|
<a name="c[% comment.count %]"
|
||||||
|
|
|
@ -218,7 +218,7 @@ body { font-family: Segoe UI, sans-serif; }
|
||||||
[%# ------ What Removed Added ------ %]
|
[%# ------ What Removed Added ------ %]
|
||||||
<tr class="n"><td>
|
<tr class="n"><td>
|
||||||
[% IF d.fieldname == 'longdesc' %]
|
[% IF d.fieldname == 'longdesc' %]
|
||||||
<a href="[% urlbase %]show_bug.cgi?id=[% d.bug_id %]#[% d.comment_id %]">
|
<a href="[% urlbase %]show_bug.cgi?id=[% d.bug_id %]#ci[% d.comment_id %]">
|
||||||
[% END %]
|
[% END %]
|
||||||
[% d.fielddesc %]
|
[% d.fielddesc %]
|
||||||
[% IF d.fieldname == 'longdesc' %]
|
[% IF d.fieldname == 'longdesc' %]
|
||||||
|
|
Loading…
Reference in New Issue